• 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
Access instance var from NSValueTransformer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Access instance var from NSValueTransformer


  • Subject: Access instance var from NSValueTransformer
  • From: Todd Freese <email@hidden>
  • Date: Sun, 14 Nov 2004 14:28:15 -0600

Title: Access instance var from NSValueTransformer
In my reverseTransformedValue method for an NSValueTransformer, I need to access an instance variable. This is because the object I need to return needs to have it’s state set correctly based on the type of document. (This is a doc-style app)

Here is my code:

- (id)reverseTransformedValue:(id)value
{
    if (value == nil) return nil;
    return [TimeCodeNumber initWithString:value base:@”29.97” isNonDrop:YES];
}

In this example, 29.97 and YES are hard coded. I need to retrieve these values from an instance var for MyDocument.

Thanks,

Todd Freese
The Filmworkers Club - Chicago
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Access instance var from NSValueTransformer
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Execute On-Load
  • Next by Date: Re: Possible to copy bundle's framework to file system?
  • Previous by thread: Re: Debugging an input manager?
  • Next by thread: Re: Access instance var from NSValueTransformer
  • Index(es):
    • Date
    • Thread