Comments on: NSCell Image and Text Sample http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/ hot bits and bytes Sun, 18 May 2008 10:49:48 +0000 http://wordpress.org/?v=2.2.1 By: glazed http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-11263 glazed Tue, 11 Mar 2008 08:00:32 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-11263 <p>Guys...</p> <p>check this out: http://kupuk.com/2007/10/08/custom-nscells-with-nsmanagedobjects/</p> <p>It describes a solution for using managed objects in the multi-value custom cells.</p> Guys…

check this out: http://kupuk.com/2007/10/08/custom-nscells-with-nsmanagedobjects/

It describes a solution for using managed objects in the multi-value custom cells.

]]>
By: Olivier http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-7275 Olivier Tue, 06 Nov 2007 15:28:13 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-7275 <p>Absolutely great sample Martin!</p> <p>Thanks a lot!</p> Absolutely great sample Martin!

Thanks a lot!

]]>
By: Damir http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-6341 Damir Fri, 28 Sep 2007 16:22:11 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-6341 <p>i am new Cocoa-Programmer and i was searching for 2 days exactly your example :)</p> i am new Cocoa-Programmer and i was searching for 2 days exactly your example :)

]]>
By: martin http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4106 martin Fri, 22 Jun 2007 09:15:43 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4106 <p>@Jon: Nice usage.</p> <p>If you want to wrap the text you have to adopt the drawing code in ImageTextCell.m. You have to replace "drawAtPoint:withAttributes" with "drawWithRect:options:attributes:". In the options you can specify which kind of wrapping you like. Check out the "NSString Application Kit Additions Reference" for the details.</p> @Jon:
Nice usage.

If you want to wrap the text you have to adopt the drawing code in ImageTextCell.m.
You have to replace “drawAtPoint:withAttributes” with “drawWithRect:options:attributes:”. In the options you can specify which kind of wrapping you like. Check out the “NSString Application Kit Additions Reference” for the details.

]]>
By: martin http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4105 martin Fri, 22 Jun 2007 09:11:15 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4105 <p>@Thomas:</p> <p>For each window I use a subclass of NSWindowController (the NIB owner) where I implement the delegate methods (including dataElementForCell).</p> @Thomas:

For each window I use a subclass of NSWindowController (the NIB owner) where I implement the delegate methods (including dataElementForCell).

]]>
By: Jon Baer http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4091 Jon Baer Thu, 21 Jun 2007 17:12:00 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4091 <p>Hi Martin,</p> <p>Im using this class in a sideproject, http://jonbaer.textdriven.com/facetastic/</p> <p>The one question I have is on text wrapping in the cell, I have come up empty in how to wrap the secondary text, any ideas?</p> <p>Thanks!</p> <ul> <li>Jon</li> </ul> Hi Martin,

Im using this class in a sideproject, http://jonbaer.textdriven.com/facetastic/

The one question I have is on text wrapping in the cell, I have come up empty in how to wrap the secondary text, any ideas?

Thanks!

  • Jon
]]>
By: Thomas http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4047 Thomas Tue, 19 Jun 2007 20:52:10 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-4047 <p>Could you elaborate on the Core Data aspect. Where would you implement the dataElementForCell method if you use keypaths?</p> Could you elaborate on the Core Data aspect. Where would you implement the dataElementForCell method if you use keypaths?

]]>
By: martin http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-2453 martin Wed, 16 May 2007 09:16:35 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-2453 <p>I plan to provide an update of the sample code with a number of additions. Thanks to the information of St├ęphane it will also include an IB integration. @Nick: Using the same mechanism in a NSOutlineView shall be pretty easy and I extend the sample to show that as well.</p> I plan to provide an update of the sample code with a number of additions. Thanks to the information of St├ęphane it will also include an IB integration.
@Nick: Using the same mechanism in a NSOutlineView shall be pretty easy and I extend the sample to show that as well.

]]>
By: Nick http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-2451 Nick Wed, 16 May 2007 01:52:25 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-2451 <p>It'd be great if you had a followup example for the same thing in an NSOutlineView</p> It’d be great if you had a followup example for the same thing in an NSOutlineView

]]>
By: Thomas http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-2444 Thomas Tue, 15 May 2007 11:55:21 +0000 http://www.martinkahr.com/2007/05/04/nscell-image-and-text-sample/#comment-2444 <p>Thanks heaps for the sample code :)</p> Thanks heaps for the sample code :)

]]>