Apple
Xcode shortcuts to finding a file.
Cocoa Developers: While programming with Xcode, I’ve developed several habits to make me a faster programmer. I’ll share these tidbits with you. 1. Use Cmd-Shift-D to quickly open files that you know the names to.... [read more]
Feb
24
2006
Cocoa: NSArrayController and two tableview’s
Hi Cocoa Developers, Tip of the day: Don’t bind two NSTableView’s to a single NSArrayController instance. Bugs will happen! More specifically, attempting to multi-select rows will not work properly — the two tableviews will fight... [read more]
Feb
2
2006
Cocoa: Targeting the entire tableview in a drop operation
Hi Programmers. If you are doing drag and drop in an NSTableView with Cocoa, you can use the following method in your “validateDrop†datasource method to retarget the row it is going to: – (void)setDropRow:(int)row... [read more]
Feb
2
2006
Cocoa: drop down menu buttons
In Cocoa, it is pretty easy to use an NSButton that creates a drop down menu. One of the key-tricks to making it appear to be an NSPopUpButton is to set the [NSCell sendActionOn:]. Generally,... [read more]
Jan
29
2006
One year at Apple.
Today is my one year anniversary at Apple! Apple is a great company, and I have been having a great time working on the AppKit framework and I’m looking forward to all the cool new... [read more]
Jan
17
2006
synergy on Intel MacOS X
Hi All. I use synergy to share my keyboard/mouse on my computers. I recompiled the server for Intel MacOS. Feel free to grab it and use it: synergyc_synergys_mac_intel.zip. It is an Intel ONLY binary. It... [read more]
Jan
13
2006
MacBook Pro: I want one!
If you haven’t heard, Apple has new laptops, the MacBook Pro. I want one!
Jan
10
2006
Cocoa: Creating a custom Color Picker in Cocoa. Part 1.
It is pretty easy to create a custom Color Picker that is available in any application, or for just your particular app. It isn’t difficult to do, but there are some caveats that you must... [read more]
Jan
8
2006
Cocoa: Using NSPredicate and NSMetadataQuery
Hi Apple Cocoa developers. Here are some more tips and tricks for Cocoa development. On Tiger, there is a new class called NSMetadataQuery that allows you to do some cool Spotlight searches. See the “Spotlighterâ€... [read more]
Jan
5
2006
Cocoa: Disappearing headers in CoreData generated TableViews
Apple Cocoa developers: Finally another blog entry for you! Everyone else: You may want to skip this one… It has come to my attention that some NSTableView instances created by dragging CoreData objects into Interface... [read more]
Jan
5
2006
I made a Pi!
…For today’s software engineering potluck, I made a Pi: Can you tell what is wrong with it? It should be easy, if you are a programmer…or math-y person.
Nov
18
2005
Sister’s birthday
My sister, Brenna, had her 25th birthday yesterday. I got her a new Apple iPod Nano: (note that one is actually mine..)
Oct
31
2005
ice cream, you scream, we all scream for ice cream!
I’m an ice cream man for Halloween, complete with counter, several flavors of real ice cream, and cones. I gave a bunch of ice cream away at Jason’s party on Saturday night, and I hit... [read more]
Oct
31
2005
Cocoa only feed
One of the great things about WordPress is that you can subscribe to the feed that you are intersted in. For instance, if you just interested in Cocoa stuff, you can just watch this feed.... [read more]
Oct
3
2005
Tiger and the dictionary is a keyboard shortcut away
A really cool “hidden†Tiger feature is the ability to quickly see the dictionary for (almost) any word in a Cocoa app. Move the cursor over a word, and press cmd-ctrl-d. You will see the... [read more]
Sep
27
2005
Safari Shortcuts
Poking around in Safari’s Contents/Resources folder reveals an HTML page describing the shortcuts: file:///Applications/Safari.app/Contents/Resources/Shortcuts.html Enjoy!
Sep
22
2005
NSOutlineView, reloading items, and the expansion state
NSOutlineView requires all of the items in it to be pointer unique. If they are not, strange things happen. However, they can be equal (meaning [NSObject isEqual] may return YES). However, there is a small... [read more]
Sep
9
2005
Using Xcode to become a faster programmer
You can utilize some of Xcode’s cool features to become a faster Mac OS X programmer. Here are some things which you may not know: 1. Use Code Completion (Code Sense). However, the default keyboard... [read more]
Aug
2
2005
Fixing the annoying focus stealing habit of Safari RSS feeds
Safari RSS support is way cool. Except for the fact that after a page has loaded, the search field receives focus, causing the space bar to not scroll down a page at a time. I... [read more]
Jun
22
2005
Debugging OCTest bundles
Another old article: June 20, 2005 Debugging OCTest bundles To debug OCTest bundles: 1. Add a new executable to your Xcode project pointing it to “otest†at /Developer/Tools/otest 2. Double click on the executable, and... [read more]
Jun
20
2005
Repost: How to find memory leaks in Cocoa apps with Object Alloc
(The original of this I accidentally killed — here is a copy). If your Cocoa application leaks memory, here is a way to find those leaks! 1) Open your application in Object Alloc 2) Start... [read more]
Jun
17
2005
Changing the disclosure triangle in an NSOutlineView
At WWDC I was asked how to remove the disclosure triangle in an NSOutlineView. Well, first things first. You can change it with this bit of code in your delegate: - (void)outlineView:(NSOutlineView *)ov willDisplayOutlineCell:(NSButtonCell *)cell... [read more]
Jun
15
2005
Tooltips for NSTableView cell’s in Tiger
At WWDC, I quickly mentioned how easy it is to add tooltip’s to an NSCell for an NSTableView/NSOutlineView. Here is a quick snippet of code on how to do this only if the text doesn’t... [read more]
Jun
10
2005
Tiger and the keyboard
Okay, one of the coolest Tiger enhancements has to do with keyboard shortcuts. The “really smart†Human Interface people at Apple figured out some stuff that bothered me in Panther. The main one that I... [read more]
Jun
10
2005
Drawing a “mail like†border on items in an NSTableView
Mail has a cool way of making unread messages stand out. It is really easy to do this type of thing with NSTableView/NSOutlineView. Subclass the one you want, and override drawRow. Toss in the code... [read more]
Jun
10
2005
As an Amazon Associate I earn from qualifying purchases.
(c) 2008-2024 Corbin Dunn
Subscribe to RSS feeds for entries.
48 queries. 0.124 seconds.