Coming from a Flex/Flash background I will have to say that there is
BIG differences between ActionScript 2.0 and 3.0. AS 3.0 is a powerful
OOP language and AS 2.0 is not. That being said, the same object
oriented principles do apply in ActionScript 3.0 the same as Obj-C and
the Cocoa
Hi again!
I'm still plucking along and any help is still greatly appreciated!
Here is the deal: I create a subobject called mySubObject inside my
main object myMainObject. Now I want to access myMainObject from
within mySubObject.
I'm still not sure what the ideal way to do this would be but I
On Oct 27, 2008, at 8:35 PM, john fogg wrote:
Inside mySubObject I cannot access this by writing
[pointerToMainObject doMethod];
but it works when I write
[self.pointerToMainObject doMethod];
Why? What difference does self make here?
Because the latter accesses the property of
I'm new to objective-C and cocoa also, I I don't know the answer to your
specific question about self. However, seems that one way to do it would
be to have the init of mySubObject have an initializer with argument, and
you would then create it something like this:
SubObject * mySubObject =
On Oct 27, 2008, at 9:35 PM, john fogg wrote:
Here is the deal: I create a subobject called mySubObject inside my
main object myMainObject. Now I want to access myMainObject from
within mySubObject.
Your terminology is a bit hard to follow. Part of the problem is that
object's don't have
Ken Thomases wrote me off-list. I don't know if this was deliberate (I
guess not) but I'd rather not quote his mail here without his consent.
Anyways the problem is fixed and I understand it all a whole lot
better now. Big thanks to everybody and esp. Ken. You all are very
nice people!!
Hi Ken!
Thank you for your long answer! It cleared up a lot of things for me.
I come from coding in Actionscript (Flash) and there things are
apparently quite different.
Is it true that all instances I create live in memory on the same
level? That they are all somehow equal? And that all
On 28 Oct 2008, at 2:30 pm, john fogg wrote:
I come from coding in Actionscript (Flash) and there things are
apparently quite different.
FWIW, I tried to do some coding in Actionscript a few years ago after
being immersed in C++ for many years and then Objective-C/Cocoa for a
few years.
Hi Graham!
On 10/28/08, Graham Cox [EMAIL PROTECTED] wrote:
FWIW, I tried to do some coding in Actionscript a few years ago after
being immersed in C++ for many years and then Objective-C/Cocoa for a
few years. To say that it was an exercise in utter frustration is an
understatement. [...]