• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Programmatically create view and handle events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Programmatically create view and handle events
      • From: Luca Tarozzi <email@hidden>
References: 
 >Programmatically create view and handle events (From: Luca Tarozzi <email@hidden>)

  • Prev by Date: Programmatically create view and handle events
  • Next by Date: Re: Undo with NSArrayController
  • Previous by thread: Programmatically create view and handle events
  • Next by thread: Re: Programmatically create view and handle events
  • Index(es):
    • Date
    • Thread