• 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
NSPopUpButton inside Table CornerView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton inside Table CornerView


  • Subject: NSPopUpButton inside Table CornerView
  • From: malcom <email@hidden>
  • Date: Fri, 18 Aug 2006 01:17:01 +0200

I've created an NSPopUpButton menu inside an NSOutlineView corner view.
This is the code for awakeFromNib:

- (void) _initCornerView {
	NSPopUpButton    * sortBtn ;
   sortBtn = [[ NSPopUpButton alloc] init ] ;
   [ sortBtn setImage: [NSImage imageNamed: @"flagged_header.tiff"] ];
   [ sortBtn setTarget: self ];
	[sortBtn setBordered:NO];

		[tagMenu release];
	tagMenu = [[NSMenu allocWithZone:[NSMenu menuZone]] initWithTitle: @"Msg"];
	NSMenuItem *item = [[NSMenuItem alloc] initWithTitle: @"c" action:
@selector(ctx_selectPopMenu:) keyEquivalent:@""];
	[item setTarget: self];
	[tagMenu addItem:item];
	[tagMenu setDelegate: self];

  [sortBtn setMenu: tagMenu];
	 [ self setCornerView: sortBtn ];
}

Unfortunatly it does not work because the menu item still disabled.
I've LAOtried to call [item setEnabled: YES] and [sortBtn
setEnabled...] but nothing has changed... anyone can help me? thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: performSelector with reference
  • Next by Date: copy versus arrayWithArray:
  • Previous by thread: Re: Programmatically replace bound objects
  • Next by thread: Re: NSPopUpButton inside Table CornerView
  • Index(es):
    • Date
    • Thread