• 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: NSData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSData


  • Subject: Re: NSData
  • From: Marco Binder <email@hidden>
  • Date: Thu, 12 Dec 2002 16:27:35 +0100

i dont think, you really need to subcalss NSData. Usually it s just fine to make up a new, NSObject based class and USE AN INSTANCE of NSData (or whatever other class you think is suitable). So, you can just create your class in IB as you are used to.

Still, you might want to do it the other way round- I think most people do it like this: create your class "by hand" as you put it, in PB and then drag the .h file into IB. IB will automatically parse it and put it in the class list. From there, you can then instantiate the class, if you really need to (I dont even think you need to do that for your plain data-class). If you defined IBActions and IBOutlets, IB will recognize those and you can do all connecting stuff visually, by drag-n-drop, in IB.

marco



Hello,

I am (slowly) learning Cocoa programming,
and I have build a few programs. It seems to
run fine. However, I have a question regarding
Interface Builder (IB). What I did until now to create
a new class is to subclass NSObject from IB's
menu.
Now what I would like to do is to create a class
that handles a custom file format. I thought I
would subclass NSData, but apparently there is
no NSData in the MainMenu.nib classes panel.
Do I have to create it "by hand", or is there a
trick to subclass any class and generate the
corresponding files?
Does the file generation handle only what is
strictly interface-related or is there a way to
generate files (.h and .m) from any existing class?

Thanks for any hint.

Pascal
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


--
|\ /| E-Mail: email@hidden WWW: www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSRunLoop and NSURL
  • Next by Date: Simple Login Dialog
  • Previous by thread: Re: NSData
  • Next by thread: Re: NSData
  • Index(es):
    • Date
    • Thread