Questions tagged [mainwindow]

157 questions
19
votes
5 answers

"Application windows are expected to have a root view controller at the end of application launch" error only on iPad

I am trying to convert my iPhone only application to a Universal application. I switched the devices to Universal and let Xcode do it's thing making a MainWindow-iPad.xib for me, and now when I run the app in the iPhone simulator it works fine, but…
Josh Sherick
  • 2,161
  • 3
  • 20
  • 37
13
votes
1 answer

How to add buttons to a main window in Qt?

I'm new to qt programming so please don't mind if you find it a noob question. I've added a button to my main window but when I run the code the button is not displayed. Here's my code: mainwindow.cpp #include "mainwindow.h" #include…
Learner
  • 499
  • 2
  • 8
  • 20
12
votes
3 answers

Unable to restore brightness on application exit

I have a feature in my app (a metronome app for musicians) to dim the screen in order to save on battery life. To set the brightness, I am using: [UIScreen mainScreen].brightness = 0.1; I am saving the original brightness on app start up in…
TheTwoNotes
  • 453
  • 3
  • 15
12
votes
3 answers

How do I access my Application Delegate's window accessor method from another object?

As mentioned before - I'm an Objective-C newbie of the first order but having read 4 physical books on the subject and a bucket-load of ebooks and documentation I still can't find what I'm looking for. I have a top-level content view controller that…
VectorVictor
  • 693
  • 1
  • 10
  • 20
10
votes
5 answers

Where is MainWindow.xib in new Xcode project?

I started a new project in Xcode 4 using the TabBar template. I noticed that there was no MainWindow.xib file in the project. Did Apple get rid of this file? How can I access the Mainwindow without this file?
user
  • 121
  • 1
  • 1
  • 4
8
votes
2 answers

Start Cocoa app without showing the main window

I have a simple Cocoa app with a single NSWindow where I can enter some credentials and after the submission the app starts an another process. In case the credentials were entered once and cached I would like to start the process by running the app…
Don Grem
  • 1,257
  • 3
  • 17
  • 25
8
votes
5 answers

Change WPF mainwindow label from another class and separate thread

Im working on a WPF application. I have a label called "Status_label" in MainWindow.xaml. and I want to change its content from a different class (signIn.cs). Normally I'm able to do this var mainWin =…
iJay
  • 4,205
  • 5
  • 35
  • 63
8
votes
4 answers

Displaying wpf content over/outside main window bounds

I am trying to achieve an effect of overlapping the main window boundary with a control. It's hard to explain this in words which is also maybe why I am having difficulty finding information on how to do this or if it is even possible. Below is an…
Dale
  • 12,884
  • 8
  • 53
  • 83
7
votes
1 answer

How to retrieve the window handle of the current WinUI 3 MainWindow from a page in a frame in a NavigationView control on the MainWindow

I am creating my first WinUI 3 desktop application. I have a NavigationView on my MainWindow. I have 9 different pages that I navigate to via the frame in the NavigationView. One of the pages is for printing reports. I need to get the FileSavePicker…
LennyL
  • 225
  • 3
  • 9
7
votes
2 answers

iOS app - how to make main window rotate

I have a background image in my main window so that when I flip views, it's not a blank white screen behind, but an image. My problem is that this image doesn't rotate when the device rotates. Edit: As far as I can tell, Brett was correct when he…
story
  • 729
  • 2
  • 9
  • 22
6
votes
1 answer

Xcode 4.2 Template Changes - UIApplication & MainWindow.xib

Background: Up until Xcode 4.2, new projects created using any of the templates would contain a MainWindow.xib and therefore pass nil as the fourth argument of UIApplicationMain(). Starting in Xcode 4.2 all the templates instantiate the application…
edelaney05
  • 6,822
  • 6
  • 41
  • 65
6
votes
3 answers

wpf - transparent MainWindow and issues with DragMove "Can only call DragMove when primary mouse button is down."

I have a wpf project which uses transparent windows and I share this transparent window styling for my dialog windows and my mainwindow. I am getting an error on my DragMove() event of my MainWindow AFTER I close a dialog window that uses the same…
TWood
  • 2,563
  • 8
  • 36
  • 58
6
votes
4 answers

How to make my WPF MainWindow a singleton?

I want to make my MainWindow a singleton because I want to make accessing it from all other windows in my app easier. But I couldn't make it run. Here is what I did. As usual, I made the MainWindow contractor private, and created a public static…
newman
  • 6,841
  • 21
  • 79
  • 126
5
votes
6 answers

C# - Program without a Window

I'm wondering whether it is possible to 'turn off' my main Window from loading automatically when my program starts with a command-line argument (i.e. when a file name is passed). The problem I have is that my program loads when a file associated…
user646265
  • 1,011
  • 3
  • 14
  • 32
5
votes
2 answers

objective c renderInContext crash on background thread

I have an app in which the screen continuously is capturing in background thread. Here is the code - (UIImage *) captureScreen { UIWindow *keyWindow = [[UIApplication sharedApplication] keyWindow]; CGRect rect = [keyWindow bounds]; …
Garnik
  • 423
  • 1
  • 6
  • 20
1
2 3
10 11