• 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: Wed, 30 Sep 2009 12:42:10 -0700

If anyone has any clue at all on this, or even some random thing that i could try to get this to work, i'd be most syked. thanks again.

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: Kyle Sluder <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>)
 >Re: Some more questions on NSOpenPanel (From: "David M. Cotter" <email@hidden>)

  • Prev by Date: Re: Strange Core Data save behaviour ("required relationship nil"... when it is set the line before saving)
  • Next by Date: Re: Some more questions on NSOpenPanel
  • Previous by thread: Re: Some more questions on NSOpenPanel
  • Next by thread: Re: Some more questions on NSOpenPanel
  • Index(es):
    • Date
    • Thread