What is loaded when a static library is linked? (was: Xcode 4 auto-importing Objective C categories from static library)

2011-04-25 Thread Bradley S. O'Hearne
. If anyone can shed some light on this, that would be great. Brad On Apr 23, 2011, at 3:57 PM, Bradley S. O'Hearne wrote: Thanks for the response, Stephen. I was under the impression that category modification was limited to the types within which they are imported. Thanks for expanding my

Xcode 4 auto-importing Objective C categories from static library

2011-04-23 Thread Bradley S. O'Hearne
Since transitioning to Xcode 4, I have discovered a very curious shift in the way Objective C categories are handled in static libraries. In general, if you create an Objective C category, you have to import that category into an implementation (.m) class in order for that category's additions

Re: Xcode 4 auto-importing Objective C categories from static library

2011-04-23 Thread Bradley S. O'Hearne
PM, Bradley S. O'Hearne br...@bighillsoftware.com wrote: Since transitioning to Xcode 4, I have discovered a very curious shift in the way Objective C categories are handled in static libraries. In general, if you create an Objective C category, you have to import that category

Re: [iPhone] Caching images fetched from a URL?

2009-05-13 Thread Bradley S. O'Hearne
Take heart, Eric. Threads aren't all that bad -- coding is simple, hardest part is debugging (should your code executing in the new thread is doing something unadvisable), but if you keep it simple, it should be fairly straightforward. Good luck, Brad On May 13, 2009, at 10:36 AM, Eric

Re: [iPhone] Caching images fetched from a URL?

2009-05-12 Thread Bradley S. O'Hearne
Eric, I think one of the more effective ways to cache images is to store your image to the file system, and then store meta-data for that image in a local SQL database. That meta-data should include a last updated date for the image. Then, instead of requesting the image directly from

Re: [iPhone] Caching images fetched from a URL?

2009-05-12 Thread Bradley S. O'Hearne
Eric, For what it is worth -- Luke is right. There are probably so many variations on how developers would want such a cache managed, and the fact that it couldn't be self-contained inside a single API object (or for that matter, tier, as it would require server cooperation too), that it

Re: Suppressing variable hiding warning in Xcode

2009-04-05 Thread Bradley S. O'Hearne
All, Thanks for the advice. I everyone on the one extra line of defense rationale. I've worked in languages other than Objective C for years where using variable hiding is common practice, not flagged by the compiler. But you are right, that is only safe for developers who NEVER make a

Re: Sublclassing NSThread

2008-12-16 Thread Bradley S. O'Hearne
All, Thanks to everyone for the replies. In my code, I made an error -- overrode the start method rather than the main method. After I overrode the start method, everything worked great. Without trying to get too specific on the actual issue, the more general thrust of my original