• 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
Re: set file name in NSSavePanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set file name in NSSavePanel


  • Subject: Re: set file name in NSSavePanel
  • From: Klaus Backert <email@hidden>
  • Date: Wed, 17 Mar 2010 12:36:41 +0100


On 17 Mar 2010, at 10:49, Nikhil Khandelwal wrote:

Is there any way to to set the file name in NSSavePanel for 10.5.
I tried "setNameFieldStringValue" but this is available for 10.6 or later. Is there any similar method available for 10.5.

According to the documentation of NSSavePanel the method

- (void)beginSheetForDirectory:(NSString *)path file:(NSString *)name modalForWindow:(NSWindow*)docWindow modalDelegate:(id)modalDelegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo

"Presents a Save panel as a sheet with a specified path and, optionally, a specified file in that path."
and
"name
Specifies a particular file in path that is selected when the Save panel is presented to a user. When nil, no file is initially selected."


Hope this helps.

Klaus

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >set file name in NSSavePanel (From: Nikhil Khandelwal <email@hidden>)

  • Prev by Date: Re: first time launch message
  • Next by Date: Re: One NSTextView, several model objects - how to synchronise undo manager
  • Previous by thread: set file name in NSSavePanel
  • Next by thread: Case sensitive fileName
  • Index(es):
    • Date
    • Thread