Skip navigation.
 
mlUsing a subclass in IB
FROM : matt neuburg
DATE : Sun Nov 10 16:10:05 2002

On Sat, 9 Nov 2002 15:01:50 -0500, Edward Fink <<email_removed>> 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_removed>, 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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlUsing a subclass in IB Edward Fink Nov 9, 21:01
mlRe: Using a subclass in IB Sam Griffith Nov 10, 05:53
mlUsing a subclass in IB matt neuburg Nov 10, 16:10
mlRe: Using a subclass in IB Andreas Mayer Nov 10, 18:46
mlRe: Using a subclass in IB Andreas Mayer Nov 10, 19:09
mlUsing a subclass in IB matt neuburg Nov 11, 17:05