• 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
NSView and Save
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: COCOA Voice Synthesis and Recognition Frameworks?
  • Next by Date: Re: Table view jumps to selection on insertion
  • Previous by thread: NSDatePicker / bindings / validation
  • Next by thread: Distributed Objects crash sending an NSImage
  • Index(es):
    • Date
    • Thread