Re: Debugger at odds with reality?

2008-04-27 Thread Colin Cornaby
This might be a stupid question, but the person who is building against your framework is using a debug version as opposed to a release version, correct? On Apr 26, 2008, at 6:20 AM, Graham Cox wrote: I have a funny problem which is proving difficult to fix. I have a framework which I've

Re: A cursor bug in DragItemAround example

2008-04-27 Thread an0
On Sun, Apr 27, 2008 at 3:34 PM, Quincey Morris [EMAIL PROTECTED] wrote: On Apr 26, 2008, at 23:14, an0 wrote: Setting a cursor always works, but is useless if something else changes it immediately afterwards. I think that might be what's happening here. (Also, if view comes from a NIB,

Re: Debugger at odds with reality? [SOLVED]

2008-04-27 Thread Graham Cox
In fact not a stupid question. There was one place in the framework where a couple of ivars were conditionally defined for debugging. Originally the #define for these was in the header itself, so you could easily allow them or not, but someone decided this would be better off in the

Re: Initial value of on/off buttons

2008-04-27 Thread Yann Disser
Ok, I finally solved my problem... I do NOT need an NSObjectController! Perhaps you got me wrong about what I tried to accomplish. The problem was, that I was binding the value of my buttons to bools that did not directly belong to my controller class but to an attribute of my controller

Re: Debugger at odds with reality? [SOLVED]

2008-04-27 Thread Ian Jackson
I've found that trashing the build folder is often a worthwhile step, and one other thing someone pointed out to me, is that you should do it when Xcode is not running. Otherwise it can still mysteriously remember some things that it's cached. Ian. On 27/04/2008, at 9:47 PM, Graham Cox

Re: Calculating file size

2008-04-27 Thread Jean-Daniel Dupas
Le 27 avr. 08 à 06:33, Jens Alfke a écrit : On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote: I was wondering what was the best way to calucate folder size with cocoa? I was able to do this but it does not include resource forks: I think you'll need to drop down to a lower-level API to get the

Re: Calculating file size

2008-04-27 Thread Laurent Cerveau
On Apr 27, 2008, at 6:33 AM, Jens Alfke wrote: On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote: I was wondering what was the best way to calucate folder size with cocoa? I was able to do this but it does not include resource forks: I think you'll need to drop down to a lower-level API to get

Re: Calculating file size

2008-04-27 Thread Jean-Daniel Dupas
Le 27 avr. 08 à 15:02, Laurent Cerveau a écrit : On Apr 27, 2008, at 6:33 AM, Jens Alfke wrote: On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote: I was wondering what was the best way to calucate folder size with cocoa? I was able to do this but it does not include resource forks: I think

Re: radio Button newbie question

2008-04-27 Thread Bill Mutch
Alli, I was having problems with my radio group as well. Everything seemed to be coded correctly but when I referenced the radio button it was never set. The matrix 1 row by 2 columns (2 radio buttons). my code was: IBOutlet NSMatrix *IB_timeInterval; I set method

New idea?

2008-04-27 Thread William Squires
I just had a light bulb moment (oops, I should have said a super- bright white LED moment) - what if Apple were to include a macro- expansion tool in XCode (4, anybody?)? The idea would be that - if you have a problem in which you are having trouble with hard-to-find compilation errors,

Re: New idea?

2008-04-27 Thread Michael Ash
On Sun, Apr 27, 2008 at 11:29 AM, William Squires [EMAIL PROTECTED] wrote: I just had a light bulb moment (oops, I should have said a super-bright white LED moment) - what if Apple were to include a macro-expansion tool in XCode (4, anybody?)? The idea would be that - if you have a problem in

Re: Calculating file size

2008-04-27 Thread Rainer Brockerhoff
At 02:49 -0700 27/04/08, [EMAIL PROTECTED] wrote: From: Jens Alfke [EMAIL PROTECTED] References: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] Date: Sat, 26 Apr 2008 21:33:26 -0700 Message-ID: [EMAIL PROTECTED] On 26 Apr '08, at 6:50 PM, Cocoa Dev wrote: I was wondering what was the best way

Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-27 Thread Mohsan Khan
Hi, I'm trying to call an AppleScript from my Cocoa application, I've copied the code from http://developer.apple.com/technotes/tn2006/tn2084.html but my application will crash once called. I did change the script to: NSAppleScript* scriptObject = [[NSAppleScript alloc] initWithSource:

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-27 Thread Jean-Daniel Dupas
Le 27 avr. 08 à 20:27, Mohsan Khan a écrit : Hi, I'm trying to call an AppleScript from my Cocoa application, I've copied the code from http://developer.apple.com/technotes/tn2006/tn2084.html but my application will crash once called. I did change the script to: NSAppleScript*

Updating frameworks stored in subversion?

2008-04-27 Thread Brian Krisler
Hi, Is there a proper method for updating a framework stored within subversion? I recently pulled my common code out into a framework, then added the framework back into my project. Now, if I make changes to the framework and recopy over the new framework, I get 155005 errors because the .svn

Re: Updating frameworks stored in subversion?

2008-04-27 Thread Seth Willits
On Apr 27, 2008, at 12:39 PM, Brian Krisler wrote: Is there a proper method for updating a framework stored within subversion? I recently pulled my common code out into a framework, then added the framework back into my project. Now, if I make changes to the framework and recopy over the new

Re: How to use bindings with IKImageBrowserView?

2008-04-27 Thread Adam Gerson
My IKImageBrowserView bound to an ArrayController is now spitting out this error when the program launches --ImageKit Error: reloadData called in non main thread When I unbind it the error goes away along with the content no longer being displayed. Any idea what could cause this? Adam On Sat,

Re: Debugger at odds with reality? [SOLVED]

2008-04-27 Thread Jerry Krinock
On 2008 Apr, 27, at 2:47, Graham Cox wrote: I'd still like to know more about how all this actually works - I feel I'm groping in the dark when things go wrong. Graham, welcome to the apparently small club (about 3-4 oddballs) who care about what version and configuration of their private

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-27 Thread Mohsan Khan
The debugger kicks in and stops at #0 0x7fff80e73d50 in _objc_fixupMessageRef in a long call stack. Do I need do include something in my project, settings etc ? On sö 27 apr 2008, at 20.59, Jean-Daniel Dupas wrote: Le 27 avr. 08 à 20:27, Mohsan Khan a écrit : Hi, I'm trying to call

NSScrollView/NSScroller drawing glitch on leopard

2008-04-27 Thread Ben Lachman
Hi all. Recently I noticed that one of the scrollers in my app was drawing a bit oddly on launch. What happens is that the vertical scroller draws as if both the horizontal and vertical scrollers were visible (e.g. a little empty white box below the down button). However, only the

Re: Calculating file size

2008-04-27 Thread ajb . lists
Others have answered with good suggestions for other APIs, but I will point out for the record that you can do it in Cocoa, too, because the file system has a path-based mechanism in which ..namedfork/rsrc is appended to the path. For example, in Terminal: $ ls -li Documents//Example.doc

NSMenuItem and images

2008-04-27 Thread Kristopher Matthews
I have an NSPopUpButton populated with some NSMenuItems that have images. I'm trying to determine the proper dimensions for the image. I'm getting the image from [NSWorkspace: iconForFile], which appears to be returning them at 32x32, much too large. Manually resizing to 16x16 works well,

Re: NSMenuItem and images

2008-04-27 Thread Seth Willits
On Apr 27, 2008, at 4:03 PM, Kristopher Matthews wrote: I have an NSPopUpButton populated with some NSMenuItems that have images. I'm trying to determine the proper dimensions for the image. I'm getting the image from [NSWorkspace: iconForFile], which appears to be returning them at 32x32,

Re: NSMenuItem and images

2008-04-27 Thread Adam R. Maxwell
On Apr 27, 2008, at 9:29 PM, Seth Willits wrote: On Apr 27, 2008, at 4:03 PM, Kristopher Matthews wrote: I have an NSPopUpButton populated with some NSMenuItems that have images. I'm trying to determine the proper dimensions for the image. I'm getting the image from [NSWorkspace:

Re: Initial value of on/off buttons

2008-04-27 Thread William Turner
Just a little addendum here... You aren't strictly _required_ to use an NSObjectController (or other NSController subclass), but in practice it is generally better to do so. Yes, you can bind your views directly to your controller classed, but that's not really the ideal pattern - see

Re: Observer CoreData Objects changes

2008-04-27 Thread William Turner
A few additional things to consider: 1) Avoid overriding validateValue:forKey:error (see Property-Level Validation in http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdValidation.html) 2) Avoid overriding initWithEntity:insertIntoManagedObjectContext: (see

Re: Initial value of on/off buttons

2008-04-27 Thread Scott Anguish
and, to add another addendum.. in the case of some controls (text fields and text views for example) not using a controller _can_ cause you problems, and your app to lose data. anything that doesn't immediately send its value to from a control to the data model upon editing requires some