Assign pointers in objective C
        Posted  
        
            by Tattat
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Tattat
        
        
        
        Published on 2010-04-20T16:47:01Z
        Indexed on 
            2010/04/20
            16:53 UTC
        
        
        Read the original article
        Hit count: 194
        
-(id)setBigObject:(BigObject *)abc{
    self.wl = abc;
    abc.smallObject = self.smallObject; 
}
I have a abc, which is a big Object, when the user pass the bigObject, abc. I assign to my wl value, so , I write "self.wl = abc;", but I want my smallObject assign to the abc's smallObject, so, I do "abc.smallObject = self.smallObject; "
So, when I edit the smallObject in self, it will also changed in the abc's also? Am I right?
© Stack Overflow or respective owner