Accessing instance variables from value transformer
Accessing instance variables from value transformer
- Subject: Accessing instance variables from value transformer
- From: Sam Stigler <email@hidden>
- Date: Mon, 14 May 2007 22:36:39 +1000
Hi,
I know this will sound convoluted, but I'm trying to access a method
in my main document class (MyDocument) from a value transformer
that's getting called from MyDocument.nib. This is because I'm, I
guess, I cheating in a way with regards to value transformers: While
the value transformer is bound to an NSForm's "tooltip" binding, in
actuality its purpose is to populate the form. The problem I'm
having is that the form is declared in MyDocument.h . Does anyone
know how I could access it, or even a method I wrote to modify it,
from my value transformer? I looked into distributed objects, but
I'm a little worried about them being "thread safe" -- does that mean
that the distributed object "server" would actually vend a different
instance of my document class then the one presently in use?
I tried [[NSApp currentDocument] foo], but got a message saying the
selector wasn't recognized -- even though it is declared in
MyDocument.h .
Thanks,
Sam
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden