Amazon.com Widgets 8.5b -- setOrigin: is never called?
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 30, 2014, 06:06:31 AM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Program Examples
| | |-+ Chapter 8
| | | |-+ 8.5b -- setOrigin: is never called?
Pages: [1] Go Down
Print
Author Topic: 8.5b -- setOrigin: is never called? (Read 905 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:



Login with username, password and session length

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 (c) 2009 classroomM.com. All rights reserved.