Re: How to converting a Carbon nib to Cocoa?

2008-07-03 Thread Jean-Daniel Dupas
Anyway, it does note make sense, as upgrading the view without rewriting all the logic using Cocoa paradigms is probably not a good idea. Unlike Carbon nib, Cocoa nib are not just a set of interface object with some property and flags, they also contains lots of information about action,

Re: Does this caution need fixed? (newb)

2008-07-03 Thread Sherm Pendley
On Thu, Jul 3, 2008 at 1:47 PM, Kyle Sluder [EMAIL PROTECTED] wrote: Many (dare I say most?) developers consider warnings to be the equivalent of the compiler vomiting in its mouth -- errors are the subsequent suffocation. Perhaps you can tell how strongly I feel about this. I completely

Re: Does this caution need fixed? (newb)

2008-07-03 Thread Jason Stephenson
Chris Paveglio wrote: My code is like this: NSMutableString *theSettings; theSettings = [[NSMutableString alloc] init]; //myPrefs is an array of strings, each item is like Library/Safari int i; for (i = 0; i 8; i++ { theSettings = [NSHomeDirectory()

Re: How to support dictionary service in a custom text view?

2008-07-03 Thread Charles Srstka
On Jul 3, 2008, at 12:03 PM, Charles Srstka wrote: Okay, so I've got a custom text view that's a subclass of NSView (not NSTextView). I've followed the instructions on this page: http://developer.apple.com/documentation/Cocoa/Conceptual/InputManager/Tasks/TextViewTask.html#/

Re: Does this caution need fixed? (newb)

2008-07-03 Thread Steve Christensen
On Jul 3, 2008, at 9:40 AM, Chris Paveglio wrote: Also, should my code be caution free as a sign of clean coding or can some cautions that don't affect functionality be dismissed? I'm one of those people who turns on just about every warning and then fixes the code that generates the

Re: Does this caution need fixed? (newb)

2008-07-03 Thread Sean McBride
On 7/3/08 9:40 AM, Chris Paveglio said: I have a loop that gets the user's home directory, and then adds a string to complete the file path for several files. This line: theSettings = [NSHomeDirectory() stringByAppendingPathComponent:[myPrefs objectAtIndex:i]]; gives me a caution sign when I

Re: launchd daemon at boot time

2008-07-03 Thread Herb Petschauer
{Snip} but still cannot get my daemon to work. I have written the proper .plist to be loaded into launchctl, and it works when I load it manually, yet, when I place the same plist in either /Library/LaunchDaemons or System/Library/LaunchDaemons, it does not load when the mac boots up. The

Re: launchd daemon at boot time

2008-07-03 Thread Mike Fischer
Am 03.07.2008 um 23:40 schrieb Nathan Wan [EMAIL PROTECTED]: Hi all, I followed documentation here (http://developer.apple.com/documentation/MacOSX/Conceptual/ BPSystemStartup/ Articles/LaunchOnDemandDaemons.html#//apple_ref/doc/uid/ TP40001762-108425) but still cannot get my daemon to

Re: NSDateFormatter question

2008-07-03 Thread Deborah Goldsmith
Correct. We're aware there is a need for what you want to do, but there is currently no way to do it. Please file an enhancement request. Deborah Goldsmith Apple Inc. [EMAIL PROTECTED] On Jul 3, 2008, at 1:13 PM, Chuck Soper wrote: Hello, Currently, I'm creating a NSDateFormatter

Re: NSPredicateEditor

2008-07-03 Thread Peter Ammon
On Jun 26, 2008, at 6:48 PM, Chris wrote: On Fri, Jun 27, 2008 at 10:09 AM, Peter Ammon [EMAIL PROTECTED] wrote: On Jun 25, 2008, at 7:27 PM, Chris wrote: The net effect is that NSPredicateEditor can't display a predicate like NOT (foo = bar) A bug in NSPredicateEditor system

Re: Does this caution need fixed? (newb)

2008-07-03 Thread Jason Stephenson
Chris Paveglio wrote: Thanks all for your help and insight! I believe Jason's solution will work for me as I am changing the assignment of what theSetting is each time through the loop. I have a list (array) of files that gets copied from one place to the other, and I change the origin and the

Crashes with no backtrace when printing

2008-07-03 Thread Ben
I have just been getting my app to print two custom views. One uses a layer-backed NSView (many CALayer sublayers, in the region of 450- ish), one a plain NSView. Sometimes (rarely, but often enough), with no apparent pattern, the app is crashing just before showing the print dialog. The

NSStatusItem custom view with menu

2008-07-03 Thread Jacob Bandes-Storch
I'm making an NSStatusItem with a custom view. In drawRect:, it draws things based on the value of the highlighted instance variable. When mouseDown: is called, it pops up a menu using the status item's popUpStatusItemMenu: method. Using the mouseUp: event does not work, because it is not

NSTextView and Spell Checking with a layer backed view

2008-07-03 Thread Chilton Webb
Hi, It appears that all 'check while typing' dots for both spelling and grammar show up at seemingly random places in an NSTextView if the view is layer backed. Is there some way around this? Thank you, -Chilton ___ Cocoa-dev mailing list

Re: launchd daemon at boot time

2008-07-03 Thread Mike Fischer
Am 04.07.2008 um 01:43 schrieb Wan, Nathan (CIV): I am sorry, I do not find the launchd-dev list on lists.apple.com That's because it's not on the Apple but on the MacOSForge site. Launchd is an Open Source project. See: http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev (It

Re: A question of style: Returning 'pairs'

2008-07-03 Thread David Casseres
I've run into this many times, and I think I've used all the techniques you mention and some others less hygienic. I've been most satisfied with your 2) and 3) solutions. There's not really that much overhead in making a struct or Obj-C class for two specific kinds of values, and once

Changing views from within another view

2008-07-03 Thread Wayne Pascoe
Hi all, I think I've hacked myself into a corner and I could use some advice / clarity in getting out of it. I am trying to build a tool that uses multiple views inside one window as well as additional windows when appropriate. The code for changing between views (changeViewController

Re: Crashes with no backtrace when printing

2008-07-03 Thread Jens Alfke
On 3 Jul '08, at 4:24 PM, Ben wrote: Attaching to program: `/Path/goes/here', process 14859. Cannot access memory at address 0x9ead7 Cannot access memory at address 0x9ead7 I've found that gdb-in-Xcode is more reliable at being able to get a backtrace if you launch the program with the