NSOpenPanel last window position
NSOpenPanel last window position
- Subject: NSOpenPanel last window position
- From: Chad Williams <email@hidden>
- Date: Tue, 09 Jan 2007 23:55:24 -0800
- Thread-topic: NSOpenPanel last window position
Is there a way to always have an open panel keep its last screen position.
Every time I call:
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
result = [openPanel runModalForDirectory:movieDirectory file:nil
types:fileTypes];
if (result == NSOKButton){...
The open panel centers itself on the screen. I would prefer it to stay in
the last position that I moved it to.
I am assuming I would have to do something like:
[openPanel setDelegate:controller];
Then
- (void)windowDidMove:(NSNotification *)notification
Would I then get the NSRect of the notification object
I can't seem to find the answer...Thanks in advance.
Chad Williams
http://www.flexvisual.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden