¡@

Home 

2014/10/15 ¤U¤È 10:11:57

iphone Programming Glossary: needless

Where to place the “Core Data Stack” in a Cocoa/Cocoa Touch application

http://stackoverflow.com/questions/1267520/where-to-place-the-core-data-stack-in-a-cocoa-cocoa-touch-application

passing a singleton object that manages a stack and from which you retrieve a context typically at best introduces a needless level of indirection and at worst introduces unnecessary application rigidity. No example retrieves the context using UIApplication..

Uiscrollview lazy loading

http://stackoverflow.com/questions/14659650/uiscrollview-lazy-loading

out loads of example code on the web. None of it really did lazy loading despite the claim or had much more complexity needless bells and whistles than I was willing to put up with. The Apple WWDC videos for PhotoPicker appear to show lazy loading..

Fast and Lean PDF Viewer for iPhone / iPad / iOs - tips and hints?

http://stackoverflow.com/questions/3889634/fast-and-lean-pdf-viewer-for-iphone-ipad-ios-tips-and-hints

while drawing init'ing your NSOperations with a docRef is a bad idea memory wrap the docRef into a singleton. Cancel needless NSOperations When you can especially if they will be using memory beware of leaving contexts open though Recycle page objects..

@property/@synthesize question

http://stackoverflow.com/questions/5903281/property-synthesize-question

self.myString nil myString release is just too much it actually sends release to nil which is harmless but also needless. You just have to mentally map hat using the dot syntax is using accessor methods self.article newArticle is self setArticle..

ObjectiveC ivars or @property

http://stackoverflow.com/questions/6942439/objectivec-ivars-or-property

using dot notation shorthand Some of us would argue that there are no benefits to dot notation. It's a gratuitous and needless pollution of the struct member syntax. However dot notation has no relation to @property declarations. You can use dot notation..