NSView and Save
NSView and Save
- Subject: NSView and Save
- From: Michael Heberle <email@hidden>
- Date: Fri, 28 Oct 2005 22:55:57 +0200
Hello,
I am very new to Cocoa and Objective-C. And I have a problem.
I have a window with a CustomView. To receive events I subclassed
NSView. The Applikation takes clicks on the CustomView and stores the
mouse position in an array in the same class. Depending on the stored
values something is drawn in the CustomView.
Everything works fine. But now I want to save the Data (not the
picture).
- When I don't instantiate the NSView subclass in
Interface Builder, the Save and Open menu items
are inactive.
- If I do instantiate the NSView subclass in
Interface Builder, the Application creates
two instances. So I am able to save, but
the Save command uses the second instance.
And this instance doesn't have any data.
How can I respond to events in an NSView and save the data?
I hope someone can help me. And sorry for my bad English (but that's
another problem... ;-))
Thanks a lot!
Michael Heberle
----------------------------------
http://www.mihe-software.de
_______________________________________________
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