• 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: How do I create a custom view, add it to my XIB file, and then create the subclass?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I create a custom view, add it to my XIB file, and then create the subclass?


  • Subject: Re: How do I create a custom view, add it to my XIB file, and then create the subclass?
  • From: Keary Suska <email@hidden>
  • Date: Sun, 04 May 2008 23:20:38 -0600
  • Thread-topic: How do I create a custom view, add it to my XIB file, and then create the subclass?

on 5/4/08 9:58 PM, email@hidden purportedly said:

> It has been two years since I did any Cocoa programming and things
> have changed.  NIBs are now XIBs and the menu item for creating
> subclasses in IB is gone.  Can someone point me to a current tutorial?

I don't know about tutorials, but it's just as easy to create classes in IB
3. For any object, to create a subclass, or drag an object to the nib, then
go to the "Identity Inspector" (Apple-6) and type in the new class name. Add
your outlets and actions, then choose "Write Class Files..." from the File
menu.

There is some quirkiness about IB 3, and if the nib isn't already associated
with a project, you may run into issues of having to manually add the files.
So far, I have only found this when creating new nibs--i.e. nibs aren't
"automatically" added to a project when you save them into the project
folder, like in IB 2. Irritating, but there is an easy workaround.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How do I create a custom view, add it to my XIB file, and then create the subclass? (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: Re: Internal Error resulting from search & replace
  • Next by Date: Re: How do I create a custom view, add it to my XIB file, and then create the subclass?
  • Previous by thread: How do I create a custom view, add it to my XIB file, and then create the subclass?
  • Next by thread: Re: How do I create a custom view, add it to my XIB file, and then create the subclass?
  • Index(es):
    • Date
    • Thread