Re: Programmatically create view and handle events
Re: Programmatically create view and handle events
- Subject: Re: Programmatically create view and handle events
- From: Kyle Sluder <email@hidden>
- Date: Wed, 26 Jan 2011 20:39:38 -0800
On Wed, Jan 26, 2011 at 8:29 AM, Luca Tarozzi <email@hidden> wrote:
> Hi all,
>
> I am new to cocoa and objective C.
>
> I am looking for a way to handle events for a NSView created
> programmatically (without IB).
These two statements are kind of at odds.
If you're new to Cocoa and Objective-C, why are you fighting the
framework and avoiding IB?
> Is it possible starting from the following code?
Anything is possible starting from any code, assuming you don't
restrict use of the "Delete" key.
Rather than ask for jigsaw-puzzle answers, why not actually learn the
framework? The code you've written shows you clearly haven't read the
View Programming Guide, because what you're trying to do (fill a view
with a color) is simply not how views work.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden