• 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: NSComboBoxCell in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSComboBoxCell in NSTableView


  • Subject: Re: NSComboBoxCell in NSTableView
  • From: Ivan Myrvold <email@hidden>
  • Date: Sat, 6 Dec 2003 22:12:19 +0100

I am using NSComboBoxCell in NSTableView in my application, and I don't
see the problems you are mentioning. Here is what I did in the
windowDidLoad method:

- (void)windowDidLoad {
NSComboBoxCell *comboCell;
NSTableColumn *combocolumn = [[ofsbliste tableColumns]
objectAtIndex:0];

comboCell = [[NSComboBoxCell alloc] init];
[combocolumn setDataCell:comboCell];
[comboCell setControlSize:NSSmallControlSize];
[comboCell setFont:[NSFont systemFontOfSize:[NSFont
smallSystemFontSize]]];
[comboCell setEditable:YES];
[comboCell setCompletes:YES];
[comboCell setAction:@selector(selectedItem:)];
[comboCell setTarget:self];

Does this help?

Ivan

Pe Dec 6, 2003 kl. 9:48 PM skrev Michael Becker:

> Hello!
>
> I am posting this for the third time now, and please understand that
> as long as I don't get any answers, I am trying over and over again,
> because this is kind of an important issue for me right now. Thanks
> :-)
>
> Here's my problem: NSComboBoxCell doesn't seem to work correctly when
> displayed in an NSCell (of an NSTableView). Direct text-editing
> doesn't work at all, but also clicking and choosing results in strange
> things. For example when I select an entry in the first combobox, the
> second combobox's selection will change to that same selection, or
> another strange thing: when clicking e.g. the 3rd combobox, the 5th
> combobox folds out, etc.
>
> It seems to like this might be an issue concerning the distinguishing
> of comboboxes. Do I have to set something like a unique id to a
> combobox?
>
> Has maybe anybody else run into problems with NSComboBoxCells in
> NSTableViews?
>
> Thanks!
> Michael
> _______________________________________________
> 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.
_______________________________________________
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:
    • Re: NSComboBoxCell in NSTableView
      • From: Michael Becker <email@hidden>
References: 
 >NSComboBoxCell in NSTableView (From: Michael Becker <email@hidden>)

  • Prev by Date: NSComboBoxCell in NSTableView
  • Next by Date: Status Bar Show/Hide
  • Previous by thread: NSComboBoxCell in NSTableView
  • Next by thread: Re: NSComboBoxCell in NSTableView
  • Index(es):
    • Date
    • Thread