Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
November 24, 2017, 10:22:38 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: 8.5b -- setOrigin: is never called?  (Read 1631 times)
bpcookson
Newbie
*
Posts: 10


« on: June 24, 2011, 03:55:38 PM »

On page 172 near the bottom it reads:
Quote
"When the setOrigin: method is invoked with the expression
myRect.origin = myPoint;
..."

Is that to say that the dot operator will specifically act on a method for variable "xxx" called setXxx:? 
As in:
example.xxx = yyy  ==  [example setXxx: yyy]

In other words, could I (if I wanted to) write my own complex setter and getter methods and access those specific methods via the dot operator?

I hope that made sense.  I'll be experimenting to figure this out in the mean time.  Thanks for any help folks.
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114



« Reply #1 on: June 24, 2011, 09:58:38 PM »

Yes you can.

Cheers,

Steve
Logged
bpcookson
Newbie
*
Posts: 10


« Reply #2 on: July 03, 2011, 09:06:58 AM »

Thanks Steve!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 classroomM.com. All rights reserved.