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

Default NSSavePanel filename selection not to include filename extension


  • Subject: Default NSSavePanel filename selection not to include filename extension
  • From: Gonzalo Castro <email@hidden>
  • Date: Wed, 07 Feb 2007 16:58:02 -0500
  • Thread-topic: Default NSSavePanel filename selection not to include filename extension

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

  • Follow-Ups:
    • Re: Default NSSavePanel filename selection not to include filename extension
      • From: Ryan Britton <email@hidden>
  • Prev by Date: Showing more than one entity in a tableview (Core Data)
  • Next by Date: Re: Execute code when exiting textfield
  • Previous by thread: Re: Showing more than one entity in a tableview (Core Data)
  • Next by thread: Re: Default NSSavePanel filename selection not to include filename extension
  • Index(es):
    • Date
    • Thread