How to disable crash reporter temporarily

2013-03-09 Thread David Mirabito
Hi, I'm working on a application which links against some cocoa libs, so is a cocoa app although not wrapped in a bundle. (The lib takes care of all the cocoa-ishness internally so my app ends up being more or less cross platform). Whenever I get a crash the Apple Crash reporter pops up and claim

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-25 Thread David Mirabito
On 25/02/2012, at 2:29 PM, Scott Ribe wrote: > On Feb 25, 2012, at 2:29 AM, David Mirabito wrote: > >> Not terribly helpful since the cocoa headers are what they are, but in other >> codebases I sneak around issue this by setting up the defines: >> >> #define F

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-25 Thread David Mirabito
Not terribly helpful since the cocoa headers are what they are, but in other codebases I sneak around issue this by setting up the defines: #define FALSE 0 #define TRUE (!FALSE) Then something like "if (mybool == TRUE)" acts as expected across all non-zero values. Also, IIRC, static analysis

CoreData, and design of document model

2012-01-27 Thread David Mirabito
Hi, I have the beginnings of a Document-based App, with CoreData. I don't expect to get the model 100% perfect from day-1 but neither do I want to begin with fundamentally incorrect approach. Let's say my model looks something like this: System -> various metadata properties (name, comments,

Re: Placing an Image next to a UI element

2011-11-26 Thread David Mirabito
rhaps even in an override of drawRect;) b) figure out how to programaticially set the edge of the superview to 'anchor' the new image to. (like how you can graphically select in IB) So I think I'm good for now, thanks for the tips that showed me the light! -DavidM On 25/11/2

Placing an Image next to a UI element

2011-11-25 Thread David Mirabito
Hello, I am trying to place an InvalidData icon next to offending input elements (popup menus, text fields, etc). I calculate the position of the new NSImageVIew based on the frame of the UI element. Keep it's vertical placement, and shift the icon to the left if it, plus a small constant spaci

Initial Object in Array Controller

2011-09-29 Thread David Mirabito
Hello, I've a simple application which for now just shows a tableview with a list of expenses ... NSArrayController (many of these are just the default...) Avoid Empty Selection - NO Preserve Selection - NO Select Inserted Objects - YES Clear Filter Predicate on I