• 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: Menulet Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Menulet Problem


  • Subject: Re: Menulet Problem
  • From: Reinhard Segeler <email@hidden>
  • Date: Sun, 31 Oct 2010 09:54:05 +0100

Can't see how your code is really working, but could it be, that the menuItem looses its connection to the textbow...

-- Reinhard	

Am 30.10.2010 um 23:27 schrieb Jozef Dransfield:

I have a status item which I'm initialising with a menu like so:


statusItem = [[[NSStatusBar systemStatusBar] statusItemWithLength: NSSquareStatusItemLength] retain];

NSBundle *bundle = [NSBundle mainBundle];

statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle
pathForResource:@"icon" ofType:@"png"]];

statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle
pathForResource:@"icon-alt" ofType:@"png"]];

[statusItem setImage:statusImage];

[statusItem setAlternateImage:statusHighlightImage];

[statusItem setMenu:statusMenu];

[statusItem setToolTip:@"Test"];

[statusItem setHighlightMode:YES];

Then I take the first menu item (which is wired in IB and set its view.

[searchItem setView: searchView];


The view only contains a textbox.



The problem I have is that the first time you click the menuicon the textbox
can be interacted with. However any subsequent clicks and the textbox is
locked out.



Can anyone point me to a tutorial or something that explains how I can handle this problem? _______________________________________________

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

_______________________________________________

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


References: 
 >Menulet Problem (From: Jozef Dransfield <email@hidden>)

  • Prev by Date: Re: Programmatic initialization of a NSManagedObject with a Relationship
  • Next by Date: Re: Get wrong tag value from NSPopupButtonCell
  • Previous by thread: Menulet Problem
  • Next by thread: Problem using zPosition on layer backed views
  • Index(es):
    • Date
    • Thread