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
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
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
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
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