Re: Programmatically create view and handle events
Re: Programmatically create view and handle events
- Subject: Re: Programmatically create view and handle events
- From: Luca Tarozzi <email@hidden>
- Date: Thu, 27 Jan 2011 07:22:04 +0100
OK. Understand.
Seems it's better if I read some more books...
Luca
Il giorno 27/gen/2011, alle ore 05.39, Kyle Sluder ha scritto:
> 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