• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSOpenPanel last window position
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: [Q] Any good sample code for NSSearchField?
  • Next by Date: Re: any api for the iphone/compiler?
  • Previous by thread: Re: [Q] Any good sample code for NSSearchField?
  • Next by thread: Should I use CALCore.framework?
  • Index(es):
    • Date
    • Thread