Hi all.
I have an app with a window that opens. On the got focus of a textfield, it checks to see if a property is true (user logged in). If false, it calls a sheet window with a login screen that changes that property to true once logged in.
If the sheet screen is open and the app is minimised, once restored, the sheet window has disappeared.
[quote=162957:@Andrew Willyan]Hi all.
I have an app with a window that opens. On the got focus of a textfield, it checks to see if a property is true (user logged in). If false, it calls a sheet window with a login screen that changes that property to true once logged in.
If the sheet screen is open and the app is minimised, once restored, the sheet window has disappeared.
Is there a way to keep it open during minimise? [/quote]
You could set a flag when you display it, and redisplay it in activate that occurs when the application is restored.
So have you checked over all of your code to see if something may be closing the sheet?
Misinterpreted input, assumed values, using a textfield.focus event, many things.
I would have checked if the user was logged in before even displaying the window with the text field.
On Mac we let the user decide what’s important. Windows with sheets can be minimized because that app may not be the most important thing on the screen.
The sheet blocks access to the rest of the window, so it does behave modally.
The only thing I can think of is that the sheet window does not have a parent. It displays ‘attempting to run sheet without a parent’ in the messages at debug run time. Although it runs fine, perhaps this is the problem?
I dont, I just do window.show
I was worried about displaying a sheet window with the showmodalwithin as it states OS X only. I want to make this mac mainly, but pc also.
[quote=162990:@Andrew Willyan]I dont, I just do window.show
I was worried about displaying a sheet window with the showmodalwithin as it states OS X only. I want to make this mac mainly, but pc also.
Great. Thanks. Will Google remote testing and see if I can get it going.
I used to boot camp but parallels is so easy and works perfectly. As long as you don’t mind giving up a gig of ram for it to use while windows is running (never been an issue for me).
Cross over is an emulator which never give great results. Parallels actually runs windows. The great thing for me is I have xp, win 7 and 8 all running without having to restart which is great for testing.
[quote=163004:@Tim Parnell]If you’re running Parallels you can set up remote testing.
I do not have Parallels, I have to Boot Camp into Windows where I have a Xojo install.
I would recommend against testing with CrossOver - it didn’t work out too well for me.[/quote]
You should get VirtualBox. It is really neat. And free.
Windows does require some oomph to feel comfortable. I usually go for the fastest gamer desktop machine I can get for development.
But to make sure your app performs adequately on average Joe’s machine, what you got now is probably just what you need. A lot of end user laptops today have processors around 1.5 GHz.