• 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
NSPopUpButtonCell as NSTableView header problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButtonCell as NSTableView header problem


  • Subject: NSPopUpButtonCell as NSTableView header problem
  • From: "Ender Wiggins" <email@hidden>
  • Date: Mon, 17 Jul 2006 20:50:47 -0500

Anyone see anything wrong with adding this popup cell to the header.
When I click on a header cell of my NSTableView, the title font turns
bold, a down arrow appears, but the popup doesn't happen when
selected.

Any help much appreciated.

---

	NSPopUpButtonCell *headerCell;
	DataTableColumn *column;

	for (i = 0; i < count; i++) {
		NSString *col = [columnItems objectAtIndex:i];

		headerCell = [[NSPopUpButtonCell alloc] initTextCell:col];
		[headerCell setControlSize:NSMiniControlSize];
		[headerCell setBordered:NO];
		[headerCell setPullsDown:YES];

		[headerCell addItemWithTitle:@"ItemA"];
		[headerCell addItemWithTitle:@"ItemB"];
		[headerCell addItemWithTitle:@"ItemC"];

		column = [[NSTableColumn alloc]
			initWithIdentifier:[NSNumber numberWithInt:i]];
		[column setHeaderCell:headerCell];
		[column sizeToFit];

		[headerCell release];

		[tableView addTableColumn:column];
	}

	[tableView reloadData];
_______________________________________________
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


  • Follow-Ups:
    • Re: NSPopUpButtonCell as NSTableView header problem
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: NSConnection/NSSocketPort per-subthread Mach port leak. Not just for NSSocketPort anymore...
  • Next by Date: Writing application without Interface Builder
  • Previous by thread: Re: NSConnection/NSSocketPort per-subthread Mach port leak. Not just for NSSocketPort anymore...
  • Next by thread: Re: NSPopUpButtonCell as NSTableView header problem
  • Index(es):
    • Date
    • Thread