• 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
Using a subclass in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using a subclass in IB


  • Subject: Using a subclass in IB
  • From: matt neuburg <email@hidden>
  • Date: Sun, 10 Nov 2002 07:10:05 -0800

On Sat, 9 Nov 2002 15:01:50 -0500, Edward Fink <email@hidden> said:

>Once I have created a subclass of an NSTextField or an
>NSTextView.....how exactly do I then use it in Interface Builder?

For NSTextField it's easy. Drop the .h file of your subclass into IB. Now, in IB, select a textfield instance, hit command-5, and choose your subclass.

For NSTextView it's more involved; IB doesn't let you do this directly. The usual approach is to do it in code. This has been covered here many times, so check the archives. m.

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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: [Repost] Subclassing NSTableColumn
  • Next by Date: Re: "weak link" framework refs for 10.1 compatibility?
  • Previous by thread: Re: Using a subclass in IB
  • Next by thread: Re: Using a subclass in IB
  • Index(es):
    • Date
    • Thread