Using a subclass in IB
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.