RE: Formatter for NSTableView[Solved]
RE: Formatter for NSTableView[Solved]
- Subject: RE: Formatter for NSTableView[Solved]
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Mon, 1 Nov 2004 15:07:43 -0500
- Importance: Normal
I should have mentioned that, instead of the second and third steps, you can
instantiate your formatter from the class hierarchy view of the nib.
Jonathan
>
> If you are going to use IB to hook up outlets, you might as well do it
> in a way that doesn't require code.
>
> First, make sure that IB knows about your formatter subclass. The
> easiest way is to drag the "h" icon in the title bar of the header's
> window in XCode into the nib's instances view in IB.
>
> Then, drag a formatter to the instances view. If you've subclassed
> NSNumberFormatter, drag one of those.
>
> Then, Get Info... on the formatter. Go to the custom class display.
> Change the class of the formatter to your subclass.
>
> Then, select the header cell of the column you want to format. You'll
> probably have to click a bunch of times. Make sure the info palette
> shows that you have selected the header cell, not the scroll view,
> table view, or table column.
>
> Then ctrl-drag from the header cell to the formatter instance and hook
> up the formatter outlet.
>
> Jonathan
_______________________________________________
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