• 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
Using NSSavepanel to init and allow <ok>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSSavepanel to init and allow <ok>


  • Subject: Using NSSavepanel to init and allow <ok>
  • From: Ken Hawkins <email@hidden>
  • Date: Mon, 15 Mar 2004 08:34:41 -0800

i have an NSSavePanel created

NSSavePanel * panel = [NSSavePanel savePanel];
[panel setCanChooseDirectories:YES];
[panel setCanCreateDirectories:YES];

[panel beginSheetForDirectory:NSHomeDirectory()
file:nil
modalForWindow:sender
modalDelegate:self
didEndSelector:@selector(filePanelDidEnd:
returnCode:
contextInfo:)
contextInfo:nil];

and my only question is that when it comes up the ok button is grayed
out. how can i have the panel come up and default to the passed in
directory? in this case 'NSHomeDirectory()'?

thanks,
ken;
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Using NSSavepanel to init and allow <ok>
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: Safely terminating a thread, or the dealloc that doesn't dealloc?
  • Next by Date: Re: iTunes plugin/extension project
  • Previous by thread: Re: Safely terminating a thread, or the dealloc that doesn't dealloc?
  • Next by thread: Re: Using NSSavepanel to init and allow <ok>
  • Index(es):
    • Date
    • Thread