• 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
Toolbar setSelectedItemIdentifier doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Toolbar setSelectedItemIdentifier doesn't work


  • Subject: Toolbar setSelectedItemIdentifier doesn't work
  • From: Jesus De Meyer <email@hidden>
  • Date: Thu, 1 Jan 2004 12:16:15 +0100

I'm having a problem with the toolbar in my app. I want it to have the
same functionality as the toolbar in the System Prefs but at the same
time I want compatibility with previous versions of OS X.

Therefore I've tried to use [toolbar
setSelectedItemIdentifier:@"myIdent"] instead of its delegate method.
However, setSelectedItemIdentifier doesn't work, while the delegate
method (NSArray *)toolbarSelectableItemIdentifiers:(NSToolbar *)toolbar
does.

Am I doing something wrong?

I get my toolbar by doing this:

NSToolbar *toolbar = [window tooldbar];
_______________________________________________
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:
    • NSParagraphStyle questions
      • From: Gideon King <email@hidden>
  • Prev by Date: Problems with Distributed Objects
  • Next by Date: NSSearchField and Mac OS X 10.2
  • Previous by thread: Problems with Distributed Objects
  • Next by thread: NSParagraphStyle questions
  • Index(es):
    • Date
    • Thread