Re: cloning an NSTableView
Re: cloning an NSTableView
- Subject: Re: cloning an NSTableView
- From: Erik Buck <email@hidden>
- Date: Wed, 17 Jan 2007 05:51:08 -0800 (PST)
If all you want is many copies of a view [hierarchy] that is in a nib, load
the nib once, extract the view you want, and in future, copy it entirely
within memory using one of the common techniques including the following:
[NSUnarchiver unarchiveObjectWithData:[NSArchiver
archivedDataWithRootObject:anObject]];
http://www.cocoabuilder.com/archive/message/cocoa/2004/7/30/113273
http://www.cocoabuilder.com/archive/message/cocoa/2002/1/27/67608
Here is a down-loadable sample application that does what you want:
http://www.cocoabuilder.com/archive/message/cocoa/2004/10/7/119005
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden