Rerun value transformer
Rerun value transformer
- Subject: Rerun value transformer
- From: Trygve Inda <email@hidden>
- Date: Wed, 20 Sep 2006 06:19:01 +0000
- Thread-topic: Rerun value transformer
I have a value transformer that is ultimately controlling the enabled state
of a button. The transformer needs some info that is only available once the
app is fully running.
[NSValueTransformer setValueTransformer:[[[IsExportableValueTransformer
alloc] initWithObject:self] autorelease] forName: @"isExportable"];
My value transformer class has an init method and gets a pointer back to my
main AppController object so it can inquire about the data it needs.
The problem is that after it is all loaded, I need to "fire" the transformer
again so properly set the button state... Since the transformer needs data
that is only obtained after applicationWillFinishLaunching completes.
Calling [myButton setNeedsDisplay:YES] does not work.
Any thoughts?
If I move the NSValueTransformer above into applicationWillFinishLaunching
then it crashes since IB has a reference to isExportable.
Thanks,
Trygve
_______________________________________________
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