Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can you write setter method for a retain property?



Can you write setter method for a retain property?..

Answer / Jitendra C Kanaujia

Yes, you can write a setter method for a retain property. In Objective-C, it would look something like this: - (void)setProperty:(id)newValue { if (newValue != self.property) { [self willChangeValueForKey:@"property"]; self.property = newValue; [self didChangeValueForKey:@"property"]; } }

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What is a block objective c?

1 Answers  


Explain the difference between #import and #include in objective-c?

1 Answers  


What are the two types of m files?

1 Answers  


Why create a custom view?

1 Answers  


What is enum in objective c?

1 Answers  


Can you learn swift without knowing objective c?

1 Answers  


What happens if you add your just created object to a mutable array, and you release your object?

1 Answers  


What is retain count?

1 Answers  


What is the definition of an objective statement?

1 Answers  


What is a class in objective c?

1 Answers  


What is the major difference between objective c and swift?

1 Answers  


What is a class property?

1 Answers  


Categories