|
Re: Window Position and Size Restored
See NSWindow.frameAutosaveName. That should take care of it for you.
- Jon
See NSWindow.frameAutosaveName. That should take care of it for you.
- Jon
|
By
Jon Gotow
·
#697
·
|
|
Re: Maintaining Aspect Ration of a Window
Thanks a lot, I think this should do the trick!
Thanks a lot, I think this should do the trick!
|
By
Dave
·
#696
·
|
|
Window Position and Size Restored
Hi,
Mac, Manual Layout.
I’m trying to reset the Window Position Size each time my App is run. When I run it under Debug, the Window Position keeps getting restored (AFAICT), I’ve subclassed
Hi,
Mac, Manual Layout.
I’m trying to reset the Window Position Size each time my App is run. When I run it under Debug, the Window Position keeps getting restored (AFAICT), I’ve subclassed
|
By
Dave
·
#695
·
|
|
Manual Layout on Mac
Hi,
I’m using Manual Layout on the Mac and I’ve also “isFippied" = YES on all views.
In Interface Builder, I have the following Window View Layout:
Window.view is set to
Hi,
I’m using Manual Layout on the Mac and I’ve also “isFippied" = YES on all views.
In Interface Builder, I have the following Window View Layout:
Window.view is set to
|
By
Dave
·
#694
·
|
|
Re: Maintaining Aspect Ration of a Window
Try -aspectRatio
https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio
Does that do what you want?
Sandor
Try -aspectRatio
https://developer.apple.com/documentation/appkit/nswindow/1419507-aspectratio
Does that do what you want?
Sandor
|
By
Sandor Szatmari
·
#693
·
|
|
Re: Maintaining Aspect Ration of a Window
Thanks a lot, I was looking for the wrong method!
Thanks a lot, I was looking for the wrong method!
|
By
Dave
·
#692
·
|
|
Re: Maintaining Aspect Ration of a Window
Yes, there is a window delegate method. Given a proposed window size, you return the actual window size you would like to constrain
Yes, there is a window delegate method. Given a proposed window size, you return the actual window size you would like to constrain
|
By
Andy Lee
·
#691
·
|
|
Maintaining Aspect Ration of a Window
Mac, Manual Layout of Views.
Hi All,
Is there anyway to ensure that when a window resizes on the Mac it maintains its aspect ratio? I’m doing manual layout as for this project Auto Layout isn’t
Mac, Manual Layout of Views.
Hi All,
Is there anyway to ensure that when a window resizes on the Mac it maintains its aspect ratio? I’m doing manual layout as for this project Auto Layout isn’t
|
By
Dave
·
#690
·
|
|
Re: Document types not working
Turns out that the OS is getting confused because there is another app that declares UTIs for files with the extensions my app can open. I've tried moving the UTIs from exported to imported, since my
Turns out that the OS is getting confused because there is another app that declares UTIs for files with the extensions my app can open. I've tried moving the UTIs from exported to imported, since my
|
By
Steve Mills
·
#689
·
|
|
Document types not working
I'm sure I had this working earlier in development of the macOS version of my app, but custom file types are no longer openable by my app. I've declared exported UTIs for cbr and cbz extensions and
I'm sure I had this working earlier in development of the macOS version of my app, but custom file types are no longer openable by my app. I've declared exported UTIs for cbr and cbz extensions and
|
By
Steve Mills
·
#688
·
|
|
Re: Show splash screen before finished launching?
I come here looking for a simple solution, and you try to make me THINK? That’s hardly fair. :-)
I managed to move some work onto a different thread, and fix a place where my main thread was
I come here looking for a simple solution, and you try to make me THINK? That’s hardly fair. :-)
I managed to move some work onto a different thread, and fix a place where my main thread was
|
By
James Walker
·
#687
·
|
|
Re: Show splash screen before finished launching?
Coming at this from the other side, why does it take enough seconds to get from willFinishLaunching to didFinishLaunching that you care? If you can reduce that time a bit, maybe you don’t have to
Coming at this from the other side, why does it take enough seconds to get from willFinishLaunching to didFinishLaunching that you care? If you can reduce that time a bit, maybe you don’t have to
|
By
Quincey Morris
·
#686
·
|
|
Re: Show splash screen before finished launching?
I wondered about that myself, and logged out the values of [NSRunloop currentRunLoop] and [NSRunloop mainRunLoop]. They showed the same non-nil value.
I wondered about that myself, and logged out the values of [NSRunloop currentRunLoop] and [NSRunloop mainRunLoop]. They showed the same non-nil value.
|
By
James Walker
·
#685
·
|
|
Re: Show splash screen before finished launching?
Hmph - now that you mention it, there's no current runloop at that point - the app is still launching. So [NSRunloop currentRunLoop] is probably returning nil. You could grabbing mainRunLoop and
Hmph - now that you mention it, there's no current runloop at that point - the app is still launching. So [NSRunloop currentRunLoop] is probably returning nil. You could grabbing mainRunLoop and
|
By
Jon Gotow
·
#684
·
|
|
Re: Show splash screen before finished launching?
Tried that, no change.
By
James Walker
·
#683
·
|
|
Re: Show splash screen before finished launching?
Try putting this after your orderFront call:
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]];
The runloop basically has to do at least one iteration before the
Try putting this after your orderFront call:
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.01]];
The runloop basically has to do at least one iteration before the
|
By
Jon Gotow
·
#682
·
|
|
Re: dispatch_get_current_queue
Yes, I noticed just after I sent it but it might be helpful to someone else. I apologize to the group for the hasty post.
--
Frederick "Rick" Bartram
bartramf@...
PGP key id: 0x4193BED2 key server:
Yes, I noticed just after I sent it but it might be helpful to someone else. I apologize to the group for the hasty post.
--
Frederick "Rick" Bartram
bartramf@...
PGP key id: 0x4193BED2 key server:
|
By
bartramf@...
·
#681
·
|
|
Show splash screen before finished launching?
I’m trying to show a splash screen in applicationWillFInishLaunching:, but it doesn’t actually appear until applicationDidFinishLaunching: seconds later. I’ve done all I can think of to make it
I’m trying to show a splash screen in applicationWillFInishLaunching:, but it doesn’t actually appear until applicationDidFinishLaunching: seconds later. I’ve done all I can think of to make it
|
By
James Walker
·
#680
·
|
|
Mojave Privileged Helper Tool - full disk access?
Hi Folks,
I have an app with a privileged helper tool which needs full disk access in 10.14 Mojave.
The privileged helper tool is (as you'd expect) a binary rather than an app bundle, so it's not
Hi Folks,
I have an app with a privileged helper tool which needs full disk access in 10.14 Mojave.
The privileged helper tool is (as you'd expect) a binary rather than an app bundle, so it's not
|
By
Mark Allan
·
#679
·
|
|
Re: dispatch_get_current_queue
That may be Swift-only … it doesn't show up in the 10.14 SDK headers. (Gerriet is using Obj-C, as indicated by his code snippet.)
—Jens
That may be Swift-only … it doesn't show up in the 10.14 SDK headers. (Gerriet is using Obj-C, as indicated by his code snippet.)
—Jens
|
By
Jens Alfke
·
#678
·
|