• 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: 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

References: 
 >Programmatically create view and handle events (From: Luca Tarozzi <email@hidden>)
 >Re: Programmatically create view and handle events (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Crash in NSPersistentDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:
  • Next by Date: Re: Crash in NSPersistentDocument writeToURL:ofType:forSaveOperation:originalContentsURL:error:
  • Previous by thread: Re: Programmatically create view and handle events
  • Next by thread: Re: Programmatically create view and handle events
  • Index(es):
    • Date
    • Thread