• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Accessing instance variables from value transformer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Accessing instance variables from value transformer
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: The released object is not releasing memory
  • Next by Date: wrapper bug?
  • Previous by thread: Re: Weird Framework linkage problem
  • Next by thread: Re: Accessing instance variables from value transformer
  • Index(es):
    • Date
    • Thread