Re: Simulating sublayers in CATiledLayer

2014-03-22 Thread Remco Poelstra
Hi, So, I've been experimenting with sublayers of CATiledLayer and this indeed does work. I've created a CALayer which contains CAShapeLayers for all the paths. It all looks great, but the performance is horrible. It seems there is no bounds checking on the CAShapeLayers, so it tries to draw th

Problems binding NSViewController's representedObject

2014-03-22 Thread Rob Nikander
Hi, I've posted here: http://stackoverflow.com/questions/22573176/why-is-nsviewcontroller-not-binding-representedobject There's code and screenshots in the above link, but the basics are this: I've created an `NSViewController` subclass, with a corresponding xib. I try to set a simple model obje

Re: Problems binding NSViewController's representedObject

2014-03-22 Thread Rob Nikander
There's an answer on stackoverflow. I wasn't keeping a strong reference to the ViewController. Doh. On Sat, Mar 22, 2014 at 8:54 AM, Rob Nikander wrote: > Hi, > > I've posted here: > http://stackoverflow.com/questions/22573176/why-is-nsviewcontroller-not-binding-representedobject > > There's cod

NSLayoutManager subclass - change the bounds of an attributed string

2014-03-22 Thread Alex Kac
I’m learning here as I go using TextKit on iOS (and soon for OS X). I’ve created an attributed name for an NSAttributedString that essentially i want drawn as a background rounded rect for the text in the attributed string. To do this I’ve subclasses NSLayoutManager and used that for UITextView.

Re: NSLayoutManager subclass - change the bounds of an attributed string

2014-03-22 Thread Alex Kac
So I tried this…and didn’t do anything. On Mar 23, 2014, at 12:15 AM, Alex Kac wrote: > > My best guess is > - (CGRect)boundingRectForGlyphRange:(NSRange)glyphRange > inTextContainer:(NSTextContainer *)container; ___ Cocoa-dev mailing list (Cocoa