On Wed, Jan 26, 2011 at 8:29 AM, Luca Tarozzi <lucataro...@gmail.com> 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 (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