Re: Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Jens Alfke
On 22 Jun '08, at 4:08 PM, Clayton Leitch wrote: #0 0x96cd5564 in NSDecimalCopy () #1 0x96d854f9 in NSDecimalSubtract () #2 0x96dadad8 in -[NSDecimalNumber decimalNumberBySubtracting:withBehavior:] () #3 0x96dada47 in -[NSDecimalNumber decimalNumberBySubtracting:] () #4 0x1b67 in -[

Re: [Q] How to add a program as a login item after installing?

2008-06-22 Thread JongAm Park
Hello. Thanks for the detailed explanation. I have been a long Mac user and a programmer, although I also have written programs for Windows, Solaris, HP-UX, Irix. So, if I were a user, I would take the procedure you said. But our people at customer support dept., and upper manager don't think

Re: Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Clayton Leitch
Possibly, but the code worked fine in 10.4. Interestingly the complied application worked in 10.5 in deployment mode. I made a few changes to the GUI and this error happened. I changed everything back to the way it was and cleaned the compile and the error continued. On Jun 22, 2008, at 8

Re: weird bug or feature?

2008-06-22 Thread Michael Ash
On Sun, Jun 22, 2008 at 11:41 AM, William Squires <[EMAIL PROTECTED]> wrote: > Okay, here's a strange UI glitch. I have an Xcode project in which I have a > "to-do" list (the challenge in Chapter 6 of the new Hillegaas book). I've > sprinkled NSLog() calls into my methods in AppController, so I ca

Re: unexpected nil outlet

2008-06-22 Thread William Squires
On Jun 18, 2008, at 2:21 PM, Nathan wrote: On Wed, Jun 18, 2008 at 4:41 AM, Michael Kaye <[EMAIL PROTECTED]> wrote: wow, I'm another one just starting the same challenge...how many of us newbies are there working through Hillegaas at the moment? /me raises hand. I'm currently stuck on cha

Re: Can a nib be confused about its owner?

2008-06-22 Thread Hamish Allan
On Mon, Jun 23, 2008 at 1:19 AM, John Murphy <[EMAIL PROTECTED]> wrote: > Since the File's Owner "object" in a nib file is actually a proxy for an > object that is provided at runtime, what happens if the nib is expecting > NSApplication to be its File's Owner but you called for the nib to be lo

Can a nib be confused about its owner?

2008-06-22 Thread John Murphy
Since the File's Owner "object" in a nib file is actually a proxy for an object that is provided at runtime, what happens if the nib is expecting NSApplication to be its File's Owner but you called for the nib to be loaded from inside your code using an instance of NSWindowController. Who wins?

Re: Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Jason Coco
Is it possible that your NSDecimalNumber is no longer a valid object reference? On Jun 22, 2008, at 19:08 , Clayton Leitch wrote: Well, thanks to the list I now have a back trace below: #0 0x96cd5564 in NSDecimalCopy () #1 0x96d854f9 in NSDecimalSubtract () #2 0x96dadad8 in -[NSDecimalNumb

Re: Wherefore art thou, o NSTableView?

2008-06-22 Thread Graham Cox
The dataSource implements this, not the delegate. You need: - (void) tableView:(NSTableView*) aTableView setObjectValue:anObject forTableColumn:(NSTableColumn*) aTableColumn row:(int) rowIndex; hth, Graham On 23 Jun 2008, at 12:43 am, William Squires wrote: Okay, this one has me stumped

Re: Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Clayton Leitch
Well, thanks to the list I now have a back trace below: #0 0x96cd5564 in NSDecimalCopy () #1 0x96d854f9 in NSDecimalSubtract () #2 0x96dadad8 in -[NSDecimalNumber decimalNumberBySubtracting:withBehavior:] () #3 0x96dada47 in -[NSDecimalNumber decimalNumberBySubtracting:] () #4 0x1b67 i

Re: Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Jason Coco
There should be crash reports in ~/Library/Logs/CrashReporter – that should give you the register state, thread stack, and information on which thread crashed. On Jun 22, 2008, at 18:38 , Clayton Leitch wrote: Well, the only thing I get from the debugger is: [Session started at 2008-06-22 1

Re: Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Clayton Leitch
Well, the only thing I get from the debugger is: [Session started at 2008-06-22 18:35:23 -0400.] Loading program into debugger… GNU gdb 6.3.50-20050815 (Apple version gdb-956) (Wed Apr 30 05:08:47 UTC 2008) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU G

NSFormatter/NSControl and valid object notification

2008-06-22 Thread Jason Stephenson
I am writing a Cocoa application as a GUI for a command line utility, and I decided to create a custom NSFormatter to ensure that the value entered in a NSTextField matches what the command line program expects for that parameter. (The format is actually rather complicated since it will accept

Re: Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Jean-Daniel Dupas
Launch it with the debugger and check the stack when it crash. Without any hint about the stack, we cannot really help you, but just give you some guess. Le 22 juin 08 à 23:26, Clayton Leitch a écrit : See code below. Get a error of “EXC_BAD_ACCESS” when I make entries in the GUI. Code us

Interesting Problem Code worked in 10.4 but not in 10.5

2008-06-22 Thread Clayton Leitch
See code below. Get a error of “EXC_BAD_ACCESS” when I make entries in the GUI. Code used to work with no problems. It appears that it is doing an illegal substraction, which I think means the objects are not being initialized with a value of 0. At least that is my guess. #import "Monthl

Re: Save animation to QuickTime movie?

2008-06-22 Thread Wayne Shao
Hi, So if I have N images, do I need to create N-1 transition tracks using the API? -- Wayne Shao On Sat, Jun 21, 2008 at 2:48 PM, douglas a. welton <[EMAIL PROTECTED]> wrote: > I would suggest that you take a look at the sample code for CocoaMovieCreate > and MakeEffectMovie. If an off the

Re: A documentation dumdum

2008-06-22 Thread Quincey Morris
On Jun 22, 2008, at 09:46, William Squires wrote: Okay, thanks. It seems to work if I just typecast it to NSString *, since the values are coming from an NSTextField as [textField stringValue] in my AppController.m when the action is triggered from the "Add" buttton. Just typecasting i

Re: Application Main window not appearing on application launch (updated)

2008-06-22 Thread Keary Suska
6/21/08 2:17 PM, also sprach [EMAIL PROTECTED]: > Core data document application: I edited the MyDocument.nib file to > add a few fields to one view and now when I start the application, the > main window does not appear. Also, the new menu fails to produce a > window. What caused this and how

Re: Core Data : BlogDemo tutorial : I must have missed something, but I don't know what...

2008-06-22 Thread John Joyce
On Sat, Jun 21, 2008 at 5:12 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 21 Jun '08, at 2:40 PM, John Joyce wrote: > > 2008-06-21 16:27:05.212 BlogDemo[1180] *** NSRunLoop ignoring exception >> '[ valueForUndefinedKey:]: this class is not key >> value coding-compliant for the key topic.' tha

Re: A documentation dumdum

2008-06-22 Thread William Squires
Okay, thanks. It seems to work if I just typecast it to NSString *, since the values are coming from an NSTextField as [textField stringValue] in my AppController.m when the action is triggered from the "Add" buttton. On Jun 22, 2008, at 11:13 AM, Jeff LaMarche wrote: On Jun 22, 2008, at

Re: [Q] How to add a program as a login item after installing?

2008-06-22 Thread Jens Alfke
On 21 Jun '08, at 11:21 PM, JongAm Park wrote: Well, in my case, we wanted to avoid such workflow. We want installing & running the special app to be transparent from users. The best thing you can do to avoid extra workflow is to *not use an installer*. It's best if the user can simply do

Re: weird bug or feature?

2008-06-22 Thread Jens Alfke
On 22 Jun '08, at 8:41 AM, William Squires wrote: If I hover the mouse over the content region of the NSTableVIew, a spurious tableView:objectValueForColumn:row shows up in the console log (note that I'm not clicking on anything, just hovering the mouse over the NSTableView) I'd guess th

Re: A documentation dumdum

2008-06-22 Thread Jens Alfke
On 22 Jun '08, at 9:13 AM, Jeff LaMarche wrote: Whatever the object is, it will be converted to a string for display, but the table view is actually capable of holding different types of data and doesn't change the type that it's holding, so you can't assume that the object it holds is a s

Re: A documentation dumdum

2008-06-22 Thread Daniel Richman
I think it's fine. This was my code for your exercise: -(void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex { NSLog(@"Replacing '%@' with '%@'", [toDoList objectAtIndex:rowIndex], anObject); [to

Re: A documentation dumdum

2008-06-22 Thread Jeff LaMarche
On Jun 22, 2008, at 12:02 PM, William Squires wrote: okay, looking up tableView:setObjectValue:forTableColumn:row shows that setObjectValue: takes an (id), but what is it really? An NSString pointer? I want to get an NSString that represents the new value the user typed in for the selected

A documentation dumdum

2008-06-22 Thread William Squires
okay, looking up tableView:setObjectValue:forTableColumn:row shows that setObjectValue: takes an (id), but what is it really? An NSString pointer? I want to get an NSString that represents the new value the user typed in for the selected (and edited) cell in the NSTableView. Can I safely ty

Re: Race in Apple's NSTreeContoller/NSOutlineView

2008-06-22 Thread Jens Alfke
FYI, another source of weird inconsistently-manifesting bugs involving nib loading: The objects in the nib are sent -awakeFromNib messages in a somewhat random order. The order is often the same from one run to the next on a single machine, but can vary between machines, or after seemingly

Re: weird bug or feature?

2008-06-22 Thread William Squires
Oops, forget the part about "... every few seconds." Instead, it should have said, "... every time the mouse enters the content region." On Jun 22, 2008, at 10:41 AM, William Squires wrote: Okay, here's a strange UI glitch. I have an Xcode project in which I have a "to-do" list (the challe

Re: weird bug or feature?

2008-06-22 Thread Daniel Richman
Can you post your code for your main class? I've been doing the same thing and haven't had anything like that. Daniel William Squires wrote: Okay, here's a strange UI glitch. I have an Xcode project in which I have a "to-do" list (the challenge in Chapter 6 of the new Hillegaas book). I've

weird bug or feature?

2008-06-22 Thread William Squires
Okay, here's a strange UI glitch. I have an Xcode project in which I have a "to-do" list (the challenge in Chapter 6 of the new Hillegaas book). I've sprinkled NSLog() calls into my methods in AppController, so I can see what's going on. I build and run, then add a few items - all okay so

Re: Why does this https post request always return "404 Not Found"

2008-06-22 Thread Steve Christensen
Hmmm... Google not working? - lists the APIs for a variety of programming languages at the bottom of the page. - is an open source Cocoa del.icio.us client, so you should be able to see what they did. On J

Re: Wherefore art thou, o NSTableView?

2008-06-22 Thread Daniel Richman
You should implement -(void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex The table view sends this message to you when one of its cells is being edited, and then you do whatever you want with the dat

Wherefore art thou, o NSTableView?

2008-06-22 Thread William Squires
Okay, this one has me stumped. What delegate do I need to implement to handle user editing a cell in an NSTableView (i.e. after they edit it, and hit the key to accept.) None of the delegate methods described in the docs seem to fit the bill, but maybe I'm just overlooking it? I've alrea

Re: zlib in 10.4 and 10.5

2008-06-22 Thread Jason Coco
Yes... everything since OS X 10.4.3 uses zlib 1.2.3... but even before that, everything used 1.2.x. zlib has been very stable for a very long time so you won't really run into any issues... /j On Jun 22, 2008, at 06:41 , Trygve Inda wrote: No. The library will return Z_VERSION_ERROR if y

Re: Data backend for larger apps --> Valentina Embedded Server.

2008-06-22 Thread Ruslan Zasukhin
On 6/22/08 2:53 AM, "Devraj Mukherjee" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have gathered that Core Data (as brilliant as it is) doesn't yet > support client/server databases. I am writing an application which > will be installed on multiple machines but would like share the single > data s

Re: zlib in 10.4 and 10.5

2008-06-22 Thread Trygve Inda
> No. The library will return Z_VERSION_ERROR if you try to > inflate something that the working zlib library doesn't understand. > > That said, zlib has been stable for years. If you're just now > getting started with compression, you should't have version > problems (that you can't manage). Ar

Re: Getting double-clicks on NSTextField

2008-06-22 Thread Steve Nicholson
On Jun 18, 2008, at 8:25 PM, Steve Nicholson wrote: I have an NSTextField on my window that is neither editable nor selectable. Is there a way for my window controller to be notified when the user double-clicks on the field? On Jun 18, 2008, at 6:04 PM, Andy Lee wrote: I don't know if the

[Q] IMKit: IMKInputController and its menu handler

2008-06-22 Thread JongAm Park
Hello, all. I figured out why it was not possible to handle the menu item for an input method According to Apple's own document... doCommandBySelector:commandDictionary: Passes commands that are not generated as part of

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-22 Thread Markus Spoettl
On Jun 21, 2008, at 11:46 PM, Mark Munz wrote: I also recommend logging a bug with Apple against this issue. You shouldn't need to jump through those sorts of hoops with NSKeyedArchiver. I did (as requested by an Apple engineer). He told me that this has been fixed internally already, he cou