[Mono-osx] NSKeyValueObserving with NSCollectionView
flohei
flo at rootof.net
Thu Feb 10 07:59:42 EST 2011
Hi again,
In a simple example where I'm binding a NSString to an NSTextField the binding does work in the first place (when the window loads). But when I update the string in code, say on a button click, it does not change the interface. Any ideas on this?
Best
–f
On 08.02.2011, at 15:48, Miguel de Icaza [via Mono] wrote:
> > I have a case where I create my own data source for a NSCollectionView. In
> > plain Obj-C/Cocoa I would create a class adopting the NSKeyValueObserving
> > Protocol to realize this. Unfortunately this class seems to be not
> > implemented yet. How do you guys do this?
>
> All you need is to flag the various methods you want with the proper
> [Export] value.
>
> See the MonoMac page for a couple of links to tutorials on doing this.
>
> Miguel
> _______________________________________________
> Mono-osx mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://mono.1490590.n4.nabble.com/NSKeyValueObserving-with-NSCollectionView-tp3275746p3276062.html
> To unsubscribe from NSKeyValueObserving with NSCollectionView, click here.
--
View this message in context: http://mono.1490590.n4.nabble.com/NSKeyValueObserving-with-NSCollectionView-tp3275746p3299053.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20110210/8b53547d/attachment.html
More information about the Mono-osx
mailing list