On 15/04/2010, at 7:14 PM, Arun wrote:

> Instead of setting it in the IB, is it possible to set the class in the code
> itself? if yes how can we do this.


If you meant how to make objects of the subclass, just, y'know, create them:

cell = [[MyCellClass alloc] init(...)];

Then set the control or other cell-hosting object using -setCell: or 
-setDataCell: as mentioned.

There is no way to "set the class in the code" once an object has been made - 
its identity is established when it is allocated.

--Graham


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to