Re: Cocoa interface with Quartz composer
Re: Cocoa interface with Quartz composer
- Subject: Re: Cocoa interface with Quartz composer
- From: "I. Savant" <email@hidden>
- Date: Mon, 24 Apr 2006 10:12:46 -0400
Mike:
Cocoa's user defaults system has a mechanism that holds the
default values for the application's preferences. You can ask the
system to reset to defaults programatically (it resets everything to
the default settings dictionary you handed it. Using bindings, all
your controls would automatically update based on the changes to the
model.
Why not do something similar? Why not create and retain a "default
settings" dictionary and set your controller to that dictionary when
a reset button is clicked? Just handing the controller the dictionary
via setContent: should be sufficient to reset everything (the model
and the controls (view)) if you're using bindings.
Hope that helps.
--
I.S.
On Apr 24, 2006, at 9:00 AM, Cook, Mike wrote:
Hi,
I have a quartz composer application with lots of controls
connected by
binding to the composer application and to a Cocoa controller
class. All
works well however:-
1) I want a reset button to return all the controls to a default
value.
This will happen with the set float message to the controls which duly
reset, but the composer application will not respond until I go round
all the controls clicking on them. How can I get round this please.
2) I have a binding variable holding the data (an image) coming out of
Quartz composer. How can I save this to disc.
Sorry but I am new at this but I assume this is a Cocoa problem rather
than a quartz composer one.
Mike Cook
Embedded Systems Manager, PAC International
Stanley Security Solutions, - Europe Limited
1 Park Gate Close
Bredbury
Stockport, SK6 2SZ
+44 (0)161 406 3576 - Telephone
+44 (0)161 406 9957 - Fax
+44 (0)7775 822098 - Mobile
mailto: email@hidden
www.stanleysecuritysolutions.co.uk
Registered Office: Stanley House,
Bramble Road, Swindon, SN2 8ER
Registered in England and Wales No. 01363776
__
"Engineers know million to one chances happen nine times out of
ten..."
__
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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