Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 08-18-2008, 07:20 PM   #6 (permalink)
DevTeamOfOne
New Member
 
Join Date: Aug 2008
Posts: 361
DevTeamOfOne is on a distinguished road
Default

OK, there are two different approaches to get the property of a certain object

lets just go for a label

myLabel.text = thatLabel.text

That is the dot syntax. That allows you to get the property of a class. So what am I saying here? set myLabel's text property to be the same as thatLabel's text property.

there's also the messaging type:

myLabel.text = [thatLabel get:text];

I am not sure about the second one, as I don't use the messaging type at all.

The Dot Syntax basically means the property of that class

so...
myLabel
myLabel.text is the text of my label
myLabel.font is the font of my label
etc.

Understand?

When you are looking through a reference piece, it will refer to properties of an object. This is what its talking about.
DevTeamOfOne is offline   Reply With Quote
 

» Advertisements
» Online Users: 955
22 members and 933 guests
ADY, baja_yu, bellissimo, bennyholmek, blanix, Cnmcc, dansparrow, Hamad, jerrywenwu, Kieren Harrold, kln, kukat, mapiko, MarkC, mayaz7_ayaz, mobifan, Pauluz85, Pincode, pipposanta, Sami Gh, tomkeys265, wserver
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,367
Threads: 93,995
Posts: 402,445
Top Poster: BrianSlick (7,978)
Welcome to our newest member, nelsonmcnichol
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:43 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.