Re: Table view data source methods order?

2009-08-03 Thread Chase Meadors
No, both delegate and data source are connected, and they are all getting called. This is why I believe the order is the problem. On Aug 3, 2009, at 12:16 AM, Quincey Morris wrote: On Aug 2, 2009, at 22:04, Chase Meadors wrote: I'm having a bit of trouble here with table view data source

Re: Table view data source methods order?

2009-08-03 Thread Andy Lee
On Aug 3, 2009, at 1:04 AM, Chase Meadors wrote: I'm having a bit of trouble here with table view data source methods. I have implemented. I have these three: 1) - (NSCell *)tableView:(NSTableView *)sender dataCellForTableColumn:(NSTableColumn *)tableColumn row: (NSInteger)row; 2) -

Re: Table view data source methods order?

2009-08-03 Thread Quincey Morris
On Aug 3, 2009, at 1:04 AM, Chase Meadors wrote: I'm having a bit of trouble here with table view data source methods. I have implemented. I have these three: 1) - (NSCell *)tableView:(NSTableView *)sender dataCellForTableColumn:(NSTableColumn *)tableColumn row: (NSInteger)row; 2) -

Re: Table view data source methods order?

2009-08-03 Thread Chase Meadors
From: Chase Meadors c.ed.m...@gmail.com Date: August 3, 2009 1:27:26 PM CDT To: Andy Lee ag...@mac.com Subject: Re: Table view data source methods order? This is beginning to frustrate me. I tried assigning the menu in the -dataCellFor... method and eliminating -willDisplay... altogether

Fwd: Table view data source methods order?

2009-08-03 Thread Chase Meadors
From: Chase Meadors c.ed.m...@gmail.com Date: August 3, 2009 2:01:57 PM CDT To: Quincey Morris quinceymor...@earthlink.net Subject: Re: Table view data source methods order? Actually, and I forgot to mention this, I need number 1 because my second column contains a mix of text cells

Re: Table view data source methods order?

2009-08-03 Thread Quincey Morris
On Aug 3, 2009, at 13:24, Chase Meadors wrote: Maybe I'm missing what you mean here, but if I do that, then what should I do in the objectValueFor... method? On Aug 3, 2009, at 2:13 PM, Quincey Morris wrote: Yes, but according to that message you *didn't* set the correct selection index

Re: Table view data source methods order?

2009-08-03 Thread Chase Meadors
I think this isn't working either. Let me post the relevant code and see if you notice anything off the bat. - (NSCell *)tableView:(NSTableView *)sender dataCellForTableColumn: (NSTableColumn *)tableColumn row:(NSInteger)row { //cut: judge column and row...

Re: Table view data source methods order?

2009-08-03 Thread Quincey Morris
On Aug 3, 2009, at 15:16, Chase Meadors wrote: NSPopUpButtonCell *cell = [[NSPopUpButtonCell alloc] initTextCell:@ pullsDown:YES]; You want a popup menu, not a pull-down menu. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Table view data source methods order?

2009-08-03 Thread Chase Meadors
...What the...?? That fixed it!... I thought that was just a preference... come to think of it, why in the world DOES that make difference?? On Aug 3, 2009, at 5:49 PM, Quincey Morris wrote: On Aug 3, 2009, at 15:16, Chase Meadors wrote: NSPopUpButtonCell *cell = [[NSPopUpButtonCell

Re: Table view data source methods order?

2009-08-03 Thread Nick Zitzmann
On Aug 3, 2009, at 4:54 PM, Chase Meadors wrote: I thought that was just a preference... come to think of it, why in the world DOES that make difference?? In a pop-up menu, the selected item is the displayed item. In a pull- down menu, the displayed item is always the very first item, but

Re: Table view data source methods order?

2009-08-02 Thread Quincey Morris
On Aug 2, 2009, at 22:04, Chase Meadors wrote: I'm having a bit of trouble here with table view data source methods. I have implemented. I have these three: 1) - (NSCell *)tableView:(NSTableView *)sender dataCellForTableColumn:(NSTableColumn *)tableColumn row: (NSInteger)row; 2) -