Hi Agha,
In my previous note, I forgot to mention that the button will have to be
explicitly connected to its window's view hierarchy, unless your view
controller does this for you.
So you'll probably need to find its super view and do something like this:
[itsSuperview addSubview: newButton];
And this may not be the only point I overlooked, which only reinforces the
wisdom of I. Savant's admonition*.
My best,
Joel
*Give a man a fish and you feed him for a day. Teach a man to fish and you feed
him for a lifetime. –Chinese Proverb
_______________________________________________
Cocoa-dev mailing list ([email protected])
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 [email protected]