Re: adding something to a setter

2011-10-06 Thread Stephan Michels
Am 06.10.2011 um 15:54 schrieb Torsten Curdt: > Well, if the model is more complex and you bind the view to the model > you can of course trigger the re-display on the observed changes. But > what about a simple title property of e.g. a NSButton? > > ...and I guess triggering a re-display is not

Re: adding something to a setter

2011-10-06 Thread Stephan Michels
I use KVO to execute custom code if a property has changed. [self addObserver:self forKeyPath:@"graphics" options:(NSKeyValueObservingOptionNew|NSKeyValueObservingOptionOld) context:self]; - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change cont

Dispatch queues and autorelease pools

2011-07-02 Thread Stephan Michels
ot;, array); [pool drain]; }); Or has the dispatch queue it's own pool? Stephan Michels.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coco

Re: Superscript attribute with CATextLayer

2008-10-20 Thread Stephan Michels
creenshot: http://rapidshare.com/files/155887033/TestView.png.html Code: http://rapidshare.com/files/155887694/AttributedStringTest.zip.html I noticed that also other attributes are ignored like background color. Stephan Michels. ___ Cocoa-dev mai

Superscript attribute with CATextLayer

2008-10-20 Thread Stephan Michels
layer.position = CGPointMake(10, 150); layer.borderWidth = 1; layer.anchorPoint = CGPointMake(0,0); [self.layer addSublayer:layer]; } Does anyone know how to solve it or have an explanation why it doesn't work? T