• 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: Extending a save panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extending a save panel


  • Subject: Re: Extending a save panel
  • From: Matt Mashyna <email@hidden>
  • Date: Thu, 16 Dec 2004 18:56:31 -0500

Alright! I was just one colon away.

Thanks for help. Works like a charm now.

Matt

On Dec 16, 2004, at 5:26 PM, Shaun Wexler wrote:

On Dec 16, 2004, at 2:00 PM, Matt Mashyna wrote:

I want to add popup button to my save panel so that I can save file in different formats. When the document is created I don't know what format the user will want to save it in. So, I want to allow them to choose from the pop up.

So, I added an NSPopUpButton to the panel using prepareSavePanel. I thought I could use setTarget and SetAction to catch the changes in the pop up. It builds OK and the pop up is there but when I used SetAction the pop up is disabled, otherwise it looks OK.

I think maybe I'm going about this all wrong. Can someone tell me the right way to do it ? Here some snippets from MyDocument.m:

[saveModeButton setTarget: self];
SEL tellMeAboutIt = @selector(setDSCFileMode);
[saveModeButton setAction: tellMeAboutIt];


Action methods take an id argument, the sender. Your selector is missing the colon...
--
Shaun Wexler
MacFOH
http://www.macfoh.com



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Extending a save panel (From: Matt Mashyna <email@hidden>)
 >Re: Extending a save panel (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Good way to store interesting data
  • Next by Date: Examples of custom controls that support bindings
  • Previous by thread: Re: Extending a save panel
  • Next by thread: Secure communication between two process
  • Index(es):
    • Date
    • Thread