• 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: Default NSSavePanel filename selection not to include filename extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default NSSavePanel filename selection not to include filename extension


  • Subject: Re: Default NSSavePanel filename selection not to include filename extension
  • From: Ryan Britton <email@hidden>
  • Date: Wed, 7 Feb 2007 14:09:47 -0800

-setExtensionHidden: ?

http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/Classes/NSSavePanel_Class/Reference/Reference.html#// apple_ref/occ/instm/NSSavePanel/setExtensionHidden:

On Feb 7, 2007, at 1:58 PM, Gonzalo Castro wrote:

Hello,

I need to have the default selection of the filename in an NSSavePanel to
_not_ have the extension selected. For example, when the NSSavePanel comes
up only the "untitled" part of the "untitled.m" filename should be selected
so when a user starts typing the extension is preserved.


Anyone know how to do this? I've seen it done in other apps.

I know about setRequiredFileType:@"m" which forces an extension onto
whatever the user enters but it would be nice to have the default selection
as a hint to the user.


Thanks,
Gonzalo

_______________________________________________

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

_______________________________________________

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


References: 
 >Default NSSavePanel filename selection not to include filename extension (From: Gonzalo Castro <email@hidden>)

  • Prev by Date: Re: Execute code when exiting textfield
  • Next by Date: Re: Showing more than one entity in a tableview (Core Data)
  • Previous by thread: Default NSSavePanel filename selection not to include filename extension
  • Next by thread: Getting temporary attributes set in NSLayoutManager to print
  • Index(es):
    • Date
    • Thread