サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Wikipedia
cocoasamurai.blogspot.com
Update: This article has been updated to reflect the changes in the latest stable ReactiveCocoa v2 MVC - One Pattern to Rule them all The MVC design pattern has existed since the late 1970s and has been in use in the Foundation, AppKit & UIKit Frameworks for a long time now. At its heart is a very simple design and a good idea. The Design is this As you can see we have 3 components Model - The Dat
This post feels a bit odd, as generally I fully agree with Dave Dribin on how wrong singletons are and that you should avoid them if possible. However on Stack Overflow i've seen far too many people write bad code that is horrible for several reasons. Basic Example Singletons are fairly easy to create. Here is a basic example... +(MyClass *)singleton { static MyClass *shared = nil; if(shared == ni
The Xcode 4 Keyboard Shortcuts are now available. I've decided to make forking it and creating your own version easier by putting it up on Github. This will make it easier to browse forks and merge new formats in. Additionally it makes it easy to have a consistent go to place that doesn't change for updates to the shortcuts. You can download the Xcode 4 keyboard shortcuts here: Xcode Keyboard Shor
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.0 developers finally got access to these tools as well. These tools are known as Blocks & Grand Central Dispatch. This article is not an introduction to these technologies as i've already covered them before here http://cocoasamurai.blogspot.com/2009/0
The Objective-C Runtime is one of the overlooked features of Objective-C initially when people are generally introduced to Cocoa/Objective-C. The reason for this is that while Objective-C (the language) is easy to pick up in only a couple hours, newcomers to Cocoa spend most of their time wrapping their heads around the Cocoa Framework and adjusting to how it works. However the runtime is somethin
Swift contains protocols in which you can declare methods, which something claiming to adhere to the protocol must implement. One thing Swift protocols can’t do are optional methods... sort of. In Objective-C we’d specify an optional method in a protocol like so @protocol MyProtcol<NSObject> -(void)someRequiredMethod:(id)param; @optional -(void)someOptionalMethod:(id)param; @end In Swift you can p
Intro As you may or may not know I recently did a talk at the Des Moines Cocoaheads in which I reviewed Blocks and Grand Central Dispatch. I have tried to capture the content of that talk and a lot more here in this article. The talk encompassed Blocks Grand Central Dispatch GCD Design Patterns Cocoa API's using GCD and BlocksAll of the content of this article applies only to Mac OS X 10.6 Snow Le
Xcode Shortcuts (PDF) Xcode Shortcuts (Black & White) (PDF) Update The original Pages Documents used to make this are now freely available under the Creative Commons License, see more info here I've gone ahead and updated the Xcode Shortcuts list for Xcode 3.2 on Mac OS X 10.6 Snow Leopard. Although I go to great lengths to ensure accuracy and correctness it could have the rare error. If you spot
If your new to Cocoa you've probably not heard of Carbon, on the other hand if you've been developing for the Mac for a while now you've probably at least heard of Carbon and if you're really experienced you've probably used carbon. If you've used carbon at all this article really isn't for you. What I want to do is gently introduce you to carbon events, the 1 scenario where we'd use it for in ter
Finally today I can finally reveal my Debugging Cocoa with DTrace guide to you. I had originally meant that this be a quick article on this site, but I kept adding and adding to it and finally by the time I knew what I had gotten myself into it was 40+ pages long. This guide isn't as comprehensive as I would like even at the length that it is. It covers many things regarding the nature of tracing
Update: Sorry people I didn't know the default Viddler downloading permissions. If you logged in and tried to download the video and couldn't before, login again and you should be able to download it now. So in this Screencast Im going to show you how to use DTrace and how to ultimately turn that knowledge into a custom DTrace Instrument for Instruments. Honestly I would login and download the ful
* = 16 KB Stack Minimum and the stack space has to be a multiple of 4 KB Thus if your spawning many threads in your application you are consuming a great deal of resources and not only that if you spawn way too many threads your threads could possibly be fighting for CPU resources. Warning! It's also important to note that although threads are a tool just like anything else in the Cocoa/Foundation
Update: This document is for Xcode on Mac OS X 10.5 Leopard. If you are using the latest Xcode 3.2 on Mac OS X 10.6 Snow Leopard then you should instead go to the Xcode Shortcuts for 3.2 on Mac OS X 10.6 Snow Leopard instead. Xcode Shortcuts (PNG) Xcode Shortcuts (PDF) Xcode Shortcuts (Black & White PNG) Xcode Shortcuts (Black & White PDF) Inspired by the Des Moines Cocoaheads Group discussion on
このページを最初にブックマークしてみませんか?
『Cocoa Samurai』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く