Re: Custom View in NSTableView
Re: Custom View in NSTableView
- Subject: Re: Custom View in NSTableView
- From: Felix Franz <email@hidden>
- Date: Wed, 1 Mar 2006 15:58:41 +0100
On Mar 1, 2006, at 1:19 PM, malcom wrote:
I'm making a simple NSTableView with NSView inside each row.
My code is pretty simple and short.
You can see it here: http://www.malcom-mac.com/files/
ProgressIndicator.zip
Unfortunatly when I run the project I see only the last cell with the
view. Only if I try to click on one of the other previous row the view
is showed (try the code if you want).
What's wrong?
Your drawWithFrame:inView: method simply repositions the view which
is used for all
cells. After drawing the table the view is positioned at the last row.
I guess clicking in a cell invokes the drawWithFrame:inView: method
which
sets the view frame accordingly.
Take a look at joar's excellent Subview-TableView-example (http://
www.joar.com/code/body.html).
I use the code and had no problems so far.
felix
_______________________________________________
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