• 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: Noob question regarding Cocoa objects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Noob question regarding Cocoa objects.


  • Subject: Re: Noob question regarding Cocoa objects.
  • From: "Kirt Cathey" <email@hidden>
  • Date: Tue, 28 Nov 2006 12:59:30 +0900

A great to pickup on Cocoa string handling and all the other basics is to
download my Cocoa 'pet' project at http://www.bizolutions.com/weaudit
Use anything from it, just don't redistribute it in whole.

Not the greatest code in the world, but alot of the routines in there we
created as a result of the grateful members that participate in this list.

--Kirt Cathey

2006/11/28, dan <email@hidden>:

I'm learning objective-c with Cocoa coming from a Java background. Have some questions to make sure I'm on the right track. ------------------------------- 1-I'm thinking an objective-c object's init method is basically equivalent to a Java's class constructor? ------------------------------- 2-By calling init (To initialize an object) it reaches the top most object (NSObject) while executing all the init in the object tree? Let's say there's objects A through Z, and Z inherits from NSObject. So [a init] will call init inside B through NSObject? ------------------------------- 3-Guessing my own objects (That I created) does not have to have an "init" - but it could be labeled as "initWithParam", etc. But I would have to create a logic that calls the super class init? ------------------------------- 4-Working with objects I think of alloc and init. But some objects offer methods that does it for you? (Basically my last question with an example)

Using NSString...
NSString *string1 = [NSString stringWithString:@"this is a test"];

Here stringWithString: actually fires off NSString init?
-------------------------------
Thanks







_______________________________________________

Cocoa-dev mailing list (email@hidden)

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




-- Kirt Cathey WorkPapers Development _______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Noob question regarding Cocoa objects. (From: dan <email@hidden>)

  • Prev by Date: Re: Invalid number in bound text field
  • Next by Date: Re: Window menu not displaying open windows?
  • Previous by thread: Re: Noob question regarding Cocoa objects.
  • Next by thread: Re: Noob question regarding Cocoa objects.
  • Index(es):
    • Date
    • Thread