• 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 NSCell issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSCell issues


  • Subject: Re: Custom NSCell issues
  • From: Benjamin Stiglitz <email@hidden>
  • Date: Thu, 26 Mar 2009 12:30:56 -0400
  • Mail-followup-to: email@hidden

> hello I'm using a custom NSCell in order to draw some elements in an
> NSTableView. I've created a simple tableview with 2 row. However my
> draws is always put on first row while the second one is empty.
> This my code for NSOutlineView delegate http://pastebin.com/m7f5f8a0f
> while this is for my NSCell http://pastebin.com/m4166a9c8.
> What's wrong?

Your midY calculation is ignoring the origin of the cellFrame, so
everything is being positioned relative to the origin.

Try NSMidY(<rect>).

-Ben
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Custom NSCell issues (From: malcom <email@hidden>)

  • Prev by Date: Re: Implementing a many-to-many ("reflexive") relationship using bindings and an NSTableView
  • Next by Date: Re: NSTableView reloadData from two sources?
  • Previous by thread: Re: Custom NSCell issues
  • Next by thread: NSView Redrawing Issue ...
  • Index(es):
    • Date
    • Thread