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

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


References: 
 >Custom View in NSTableView (From: malcom <email@hidden>)

  • Prev by Date: Programmatically setting the value of a bound TextField
  • Next by Date: Re: Need Help Please....Truncation Mode for Window Title
  • Previous by thread: Custom View in NSTableView
  • Next by thread: NSTextView custom cursor
  • Index(es):
    • Date
    • Thread