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

Re: Access instance var from NSValueTransformer


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

> If you're currently binding, say, to timeCodeNumber, you could create a
> new pair of accessors, -timeCodeNumberWithString, and
> setTimeCodeNumberWithStringForDocument:, that encapsulate the value
> transforms.

The one problem I have is that the instance vars I need to access in order
to create a new TimeCodeNumber are not in the TimeCodeNumber class. They are
in the class that is creating the TimeCodeNumber instance called Event.

The Event class has an NSMutableDictionary that holds different
TimeCodeNumber objects.

I got the binding to work without the NSValueTransformer to display the
TimeCodeNumber data. However, I am not sure how the binding system is going
to create a new TimeCodeNumber object and access the instance vars from the
Event class to init it correctly.

Todd







 _______________________________________________
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>
References: 
 >Re: Access instance var from NSValueTransformer (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: How to embed a popup menu in an NSTextField
  • Next by Date: Custom NSTextView and scrolling problem
  • Previous by thread: Re: Access instance var from NSValueTransformer
  • Next by thread: Re: Access instance var from NSValueTransformer
  • Index(es):
    • Date
    • Thread