前回は、AndroidでのPhoneGap API拡張の紹介でした。今回は、iPhoneの場合のPhoneGap拡張方法について解説します。この記事は先週リリースされたPhoneGap 1.0を対象としています。インストールまたはアップグレードの注意点については、PhoneGap iOS版のREADME... 続きを読む
Indentation Use spaces, not tabs. Tabs should only appear in files that require them for semantic meaning, like Makefiles. The indent size is 4 spaces. Right: int main() { return 0; } Wrong: int main() { return 0; } The contents of an outermo... 続きを読む
Hi, I'm Martin and I write software. I also have a hell of a lot of stuff going through my head with thoughts and opinions on many things. Unfortunately, in this whole jumble I often fail to articulate my point of view very well. This blog is... 続きを読む
Wednesday, February 23, 2011 Practical Design Patterns with Blocks and Grand Central Dispatch IntroductionWhen Mac OS X 10.6 was introduced, the Mac got a very powerful duo of developer tools that made development on a lot easier. With iOS 4.... 続きを読む
The key point to note about the Mac's scalable malloc implementation is that it doesn't just divide up virtual memory pages to return smaller blocks but it allocates "tiny" and "small" allocations from their own separate regions ("large" allo... 続きを読む
What follows (across this and 3 more posts, maybe more) is a rather detailed tour of objc_msgSend() as implemented in Mac OS X 10.6.2. Rather detailed in that every instruction will be explained. Even though it is relatively few instructions,... 続きを読む
It's another Friday, and thus another Friday Q&A. I have recovered from the confusion of the Daylight Saving Time transition and am now ready to talk about Mac OS X linking, install names, @executable_path, and friends. Static Libraries These... 続きを読む
Rough Cuts Preview Available Friday Sept 25.2009 I’m thrilled to tell you that Cocoa and Objective-C: Up and Running is now available at O’Reilly Rough Cuts. This is just a preview of the book — content will be added, removed, tuned, and r... 続きを読む
This is an emergency guide to iPhone software development, i.e. a guide for competent developers who haven’t written code for the iPhone platform before, and just want to get started right now. If you’re inexperienced in application develop... 続きを読む
Now that the iPhone SDK is out, iPhone/iPod Touch has sold millions and the App Store is pretty popular, there are many people taking to iPhone and Cocoa Touch development. While the SDK is very well designed and pretty quick to get into, the... 続きを読む
Split View Give subviews max and min sizes, specify which subviews should resize, set divider colors, and hook up buttons to collapse subviews with animation – all from inside Interface Builder. Selectable Toolbar Create preferences windows ... 続きを読む
This technote describes a number of 'secret' debugging facilities in Mac OS X, including environment variables, preferences, routines callable from GDB, special files, and so on. If you're developing for Mac OS X, you should look through this... 続きを読む
Objective-C's unique syntax results in unique ways of making mistakes. In this post, I look at the compiler warnings and errors GCC outputs when you make mistakes or potential mistakes in your Objective-C syntax and show you how to fix them. ... 続きを読む
Welcome back to another Friday Q&A. This week I'd like to take Joshua Pennington's idea and elaborate on a particular facet last week's topic of the Objective-C runtime, namely messaging. How does messaging work, and what exactly does it do? ... 続きを読む
Google Toolbox for MacA collection of source from different Google projects that may be of use to developers working other Mac projects. To browse the Google Toolbox for Mac source code, visit the Source tab. Library changes are documented in... 続きを読む