• 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
setState: on a DockMenu item ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setState: on a DockMenu item ???


  • Subject: setState: on a DockMenu item ???
  • From: Yann Bizeul <email@hidden>
  • Date: Sun, 5 Jan 2003 20:21:59 +0100

Hi !

I'm trying to set NSOnState on an NSMenuItem in the dock. I saw in the
list archive that Apple did not completely implement de dockMenu
(weird, should be cool guys !). So I did what is described here :

http://cocoa.mamasam.com/MACOSXDEV/2002/10/1/46998.php

replacing :
if (i) [aDictionary setObject:[NSNumber numberWithInt: marker]
forKey:@"mark"];
by
[aDictionary setObject:[NSNumber numberWithInt: marker]
forKey:@"mark"];

because i is not declared anywhere.

But all I get is NSMixedState, unable to get a normal NSOnState...

Does someone has an idea ?
--
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
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.

  • Prev by Date: Re: storing passwords
  • Next by Date: Two Rounded NSTextField bugs
  • Previous by thread: Two Rounded NSTextField bugs
  • Next by thread: Working with 32-bit Unicode (NSString stringWithUTF32String: (const UTF32Char *) bytes needed)
  • Index(es):
    • Date
    • Thread