• 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: Some more questions on NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some more questions on NSOpenPanel


  • Subject: Re: Some more questions on NSOpenPanel
  • From: "David M. Cotter" <email@hidden>
  • Date: Tue, 29 Sep 2009 17:50:50 -0700

Just before we put up the dialog, we enable undo, cut, copy, paste, clear, and select all. these items all have the correct HICommand assigned (eg: "select all" has kHICommandSelectAll as it's "tag")

Tag? kHICommandSelectAll? This is the cocoa-dev list. ;-)

okaaaaye, well yes:

	[nsMenuItem setTag: kHICommandSelectAll];

The Select All item needs a target of First Responder and an action of
-selectAll:.

okay fine.
so just before i put up the OS dialog, i now set the action to selectAll and the target to nil (first reponder, right?)


	[nsMenuItem setAction:@selector(selectAll:)];
	[nsMenuItem setTarget:nil];


i also enable the menu item then i put up my NSPanel (the save dialog)

however the edit menu is completely disabled, specifically the SelectAll command is still disabled.

what else could i possibly be missing????


_______________________________________________

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


  • Follow-Ups:
    • Re: Some more questions on NSOpenPanel
      • From: "David M. Cotter" <email@hidden>
References: 
 >Re: Some more questions on NSOpenPanel (From: "David M. Cotter" <email@hidden>)
 >Re: Some more questions on NSOpenPanel (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Static Analyzer Question
  • Next by Date: Don't understand NSBrowser's setReusesColumns:
  • Previous by thread: Re: Some more questions on NSOpenPanel
  • Next by thread: Re: Some more questions on NSOpenPanel
  • Index(es):
    • Date
    • Thread