NSFormatter & NSFormatter in IB
NSFormatter & NSFormatter in IB
- Subject: NSFormatter & NSFormatter in IB
- From: Jeff LaMarche <email@hidden>
- Date: Tue, 9 Oct 2001 21:43:15 -0700
I'm working through Learning Cocoa's table demos, and everything's
working fine and I'm understanding the concepts, but I'm having problems
doing one of the tasks they outline. I'm not sure what I'm overlooking,
but I'm sure it's something obvious.
The instruction is to drag a date formatter from the palette to a column
of the table. I drag the formatter to the header of the column that I
want to use it on, it highlights, and I drop it. This does not set the
formatter for the column. I've tried many permutations of the same
action - changing the selected object from the View to the Column to the
Header itself before dragging the NSFormatter. The weird thing is that
if I select the NSTableColumn and show the connections in the inspector,
when I drop the formatter onto the column header, the inspector changes
to showing attributes as if the selected object had changed to a new one
(which it hasn't).
I know that I can set this programmatically, but I'd rather have it in
the NIB. Can anyone tell from this what I'm doing wrong?