Basically something you should NOT do: don't start your own API calls with "set" or "get", just in case.
By default - invisible from developer eyes - iPhone SDK @synthesize creates setters and getters for the selected class instance variables. If part of your API allows changing these values somehow, you might accidentally overwrite a default setter or getter.
Perfectly legal thing, something you migth want to do on purpose. Very difficult to debug, if you did that by mistake.
Instead of setVariable you could use changeVariable.
Showing posts with label DefaultValue. Show all posts
Showing posts with label DefaultValue. Show all posts
Monday, May 3, 2010
How (not) to Name Your Class API
Thursday, January 28, 2010
How to Add Linebreak into Settings.bundle String
You need to add application copyright notice into Settings.bundle, but realize that using separate Title (PSTitleValueSpecifier) and String (DefaultValue) side by side is too wide. End of copyright notice is not visible, it's automatically truncated with "...". What to do?
You could add a single title row (PSGroupSpecifier) with "Copyright © 2010 by" and a value row below it with name of the company. Doesn't look quite right, seems like a user-defined setting!
Another solution is to use only title row for both (PSGroupSpecifier) strings together (Title). It wraps by default, which might not happen in a way you want. Want more control? Open Root.plist file as source code. Add 
 to force a line break in the exact location you want to.
You could add a single title row (PSGroupSpecifier) with "Copyright © 2010 by" and a value row below it with name of the company. Doesn't look quite right, seems like a user-defined setting!
Another solution is to use only title row for both (PSGroupSpecifier) strings together (Title). It wraps by default, which might not happen in a way you want. Want more control? Open Root.plist file as source code. Add 
 to force a line break in the exact location you want to.
Labels:
copyright,
DefaultValue,
iphone,
plist,
PSGroupSpecifier,
PSTitleValueSpecifier,
settings
Subscribe to:
Posts (Atom)