• 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
prepareSavePanel and Hide extension
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

prepareSavePanel and Hide extension


  • Subject: prepareSavePanel and Hide extension
  • From: "Brian Helinski" <email@hidden>
  • Date: Wed, 13 Feb 2002 17:13:11 -0500

Hello:

I am trying the following under 10.1.3 with Dec 2001 Dev Tools, but the
"Hide extension" button seems to always stay checked until I manually click
on the button from the NSSavePanel for an NSDocument based Document. Anyone
know a way to change the current state of the displayed NSSavePanel Hide
extensions button?. I want to ensure that the Hide Extension defaults to
being off the first time a users launches the application, and then let the
system and the user choose their own course after that point, but I cannot
seem to override the default state of Hiding extensions, unless I entirely
disable the Hide extension button via - (void)setCanSelectHiddenExtension:.

Here is a simple version of what I am trying to no avail in my NSDocument
derived class. The code is called, and everything appears to be okay in gdb
but the button is still checked when the save dialog appears on screen.

- (BOOL)prepareSavePanel:(NSSavePanel*)savePanel
{
[savePanel setExtensionHidden:NO];
return YES;
}


Any help appreciated,
Brian Helinski
_______________________________________________
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:
    • NSDocument/PBuilder default behavior
      • From: "Brian Helinski" <email@hidden>
References: 
 >Sockets documentation? (From: Daniel Byer <email@hidden>)

  • Prev by Date: FontWithName Re: How to change default font for NSTextView?
  • Next by Date: NSMutableData not playing ball
  • Previous by thread: Re: Sockets documentation?
  • Next by thread: NSDocument/PBuilder default behavior
  • Index(es):
    • Date
    • Thread