Re: Time since Login?

2009-04-22 Thread Uli Kusterer
On 22.04.2009, at 04:43, Trygve Inda wrote: Is there also a way to determine some sort of overall system activity? There's Unix calls in the Kernel to do this, for instance host_statistics() with the HOST_CPU_LOAD_INFO selector. They're a little fiddly to use because everything you do in

Re: Drag and drop display image and file path?

2009-04-22 Thread Uli Kusterer
On 22.04.2009, at 00:03, Henrietta Read wrote: NSArray *files = [pboard propertyListForType:NSTIFFPboardType]; [self setImage:[files objectAtIndex:0]]; This is probably your mistake. setImage expects an NSImage*. Whatever is on the pasteboard in that array you have, it's unlikel

Re: how to get the save File path from NSPrintpanel

2009-04-22 Thread Uli Kusterer
On 21.04.2009, at 12:08, sandeep chaudhary wrote: I am using the Objective-C for my application. In my application I use the NSPrintPanel to print the document. In the NSPrintPanel user can save the document using the "Save as pdf" option of NSPrintPanel, and a new dialog is open

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness

2009-04-22 Thread Ben Trumbull
Of course, why Apple couldn't have then added automatic support for in-memory matching as the second step I don't know Probably because nobody ever cared enough to file an enhancement request, and it didn't occur to us that writing 1 line of code to call filteredArrayWithPredicate was so tro

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Mario Kušnjer
On 2009.04.22, at 08:55, Benjamin Dobson wrote: Although I'd appreciate it if you could in any way avoid the latter. I have always found them extremely annoying on OS X. If you're app takes a long time to load, something small and simple like what iWork does seems better.___

Re: Long Time Dealy When getting Vended Object

2009-04-22 Thread Ken Thomases
On Apr 22, 2009, at 1:14 AM, Kiran Kumar S wrote: Really going mad, it is taking long time response when i am trying to get vended Object from the remote machine which doesn't exist in the network. . I am facing same long time delay(more than 60 sec) when i am trying to get vended obje

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness

2009-04-22 Thread Ben Trumbull
The fact that Core Data "cannot fetch using a predicate based on transient properties" [1] seems to greatly limit the utility of the NSPredicateEditor view, and makes me very sad. Dear list. transient (adj): (1) passing especially quickly into and out of existence May I suggest that the expec

Re: MDItemCopyAttribute and kMDItemFinderComment

2009-04-22 Thread Alastair Houghton
On 22 Apr 2009, at 04:30, Jeremy W. Sherman wrote: getxattr(2) will directly access the current on-disk attribute value. Why not just use it as Alastair suggested? I suppose it is worth mentioning that getxattr() won't work as a way of getting the Finder information if the drive you're usi

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness

2009-04-22 Thread Mike Abdullah
On 22 Apr 2009, at 08:48, Ben Trumbull wrote: Of course, why Apple couldn't have then added automatic support for in-memory matching as the second step I don't know Probably because nobody ever cared enough to file an enhancement request, and it didn't occur to us that writing 1 line of cod

Re: newbie questions on NSString* as a class attribute

2009-04-22 Thread Mike Abdullah
On 22 Apr 2009, at 02:15, Andrew Farmer wrote: On 21 Apr 09, at 17:53, Wayne Shao wrote: Let's say that I have a member variable NSString* logFilePath, I do init in the initWith method as logFilePath = [[some_other_path stringByAppendingPathComponent:@"log.txt"] copy]; The ques

Re: Really big files and encodings

2009-04-22 Thread Alastair Houghton
On 22 Apr 2009, at 06:57, Seth Willits wrote: In my app, I import data from potentially very large files. In the first pass, I simply mmap'd the entire file, created a string using CFStringCreateWithBytesNoCopy, and go about my business. This works great until it hits the address limit when

file extensions and Mime Type

2009-04-22 Thread rajesh
Hi All, (posting this on behalf of my colleague) Application we are currently working supports file drag from desktop It typically finds what type of file it is and then processes it accordingly. we don't want to solely depend on file extension. How can file Mime Type help us.. We have

Re: file extensions and Mime Type

2009-04-22 Thread Alastair Houghton
On 22 Apr 2009, at 10:31, rajesh wrote: Application we are currently working supports file drag from desktop It typically finds what type of file it is and then processes it accordingly. we don't want to solely depend on file extension. How can file Mime Type help us.. We have listed

Re: Long Time Dealy When getting Vended Object

2009-04-22 Thread Kiran Kumar S
Thanks, Ken for your Reply, Usually we will get time out exception when trying to get vended object that is not available but in the below case i use to get same exception after a long long delay and some times My app crashes Thanks SkiranKumar On 22-Apr-09, at 1:52 PM, Ken Thomases wr

Re: file extensions and Mime Type

2009-04-22 Thread rajesh
Thanks Alastair. On Apr 22, 2009, at 11:51 AM, Alastair Houghton wrote: On 22 Apr 2009, at 10:31, rajesh wrote: Application we are currently working supports file drag from desktop It typically finds what type of file it is and then processes it accordingly. we don't want to solely

[NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit

2009-04-22 Thread Iceberg-Dev
What's the official way to replace _outlineCell and _trackingOutlineCell in Cocoa 64-bit? I do this for 32-bit: @implementation NSOutlineView (PrivateCells) - (NSButtonCell *) outlineCell { return _outlineCell; } - (void) setOutlineCell:(NSButtonCell *) inButtonCell { if (_ou

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Gregory Weston
Mario Ku?njer wrote: Greetings everyone ! So the question is how to make a window that doesn't have a title bar and borders ? Actually I would like it to be just like user login window of OS X. This could also go for a so called "Splash Screen" on app launch. Thanks to all in advance. This

Re: Time since Login?

2009-04-22 Thread Dave DeLong
There's also the "w" command that you could run in an NSTask. Dave On Apr 22, 2009, at 1:21 AM, Uli Kusterer wrote: On 22.04.2009, at 04:43, Trygve Inda wrote: Is there also a way to determine some sort of overall system activity? There's Unix calls in the Kernel to do this, for instance

Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread jonat...@mugginsoft.com
The property canDelete is dependent on three other properties as shown below. Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete with regard to the key path @"arrayController.canRemove"? Modifying property1 and property2 results in the re-evaluation of -

Re: Really big files and encodings

2009-04-22 Thread Michael Ash
On Wed, Apr 22, 2009 at 1:57 AM, Seth Willits wrote: > So, I generally know what I should do, but the problem is that I don't know > how to identify an encoding as fixed-width or variable. I could spend the > time to look up each and every encoding on the internet, but there are kind > of a lot of

Bindings making NSNumberFormatter strange

2009-04-22 Thread Ulai Beekam
Hi, I have an (editable) NSTextField with an NSNumberFormatter attached to it. The text field is bound to some other numerical property (if you want to test this, you can just make a simple AppController and put the "@property(readwrite) int foo;" inside it, and bind the text field to AppContr

Re: Fast Forward and backward about QuickTime movie

2009-04-22 Thread douglas welton
According to the documentation for QTMovie, setting the playback rate using the -setRate: is rather straightforward. As for getting the button's state to align with playback, I would probably subclass the button, overriding -mouseUp: and -mouseDown: as appropriate. On Apr 21, 2009, at 11:0

Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit

2009-04-22 Thread Corbin Dunn
Howdy, On Apr 22, 2009, at 4:37 AM, Iceberg-Dev wrote: What's the official way to replace _outlineCell and _trackingOutlineCell in Cocoa 64-bit? I do this for 32-bit: @implementation NSOutlineView (PrivateCells) - (NSButtonCell *) outlineCell { return _outlineCell; } Note that wh

Combine multiple sources into an NSOutlineView using NSTreeController

2009-04-22 Thread Marcel Philipp Harris
Hello, in my app, I have an outline view that is bound to an NSTreeController, which is connected to a Core Data entity. It works like a charm, but I would like to add category headings to the outline views categories and possibly even add some sources unrelated to the Core Data model. I

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread Ken Thomases
On Apr 22, 2009, at 9:45 AM, jonat...@mugginsoft.com wrote: Removing all items in the array bound to arrayController does not cause -canDelete to be evaluated, even though [arrayController canRemove] becomes NO. How are you removing the items? Is it being done in a KVO-compliant manner?

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Chris Williams
So you'd rather the user sits there wondering if this huge, highly complex application (like any Office or Adobe app) that takes 10-15 seconds to load, even longer on a slow laptop, is actually starting up, or should I click it again, or is my computer dead, or "what the heck is going on here"...?

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread jonat...@mugginsoft.com
On 22 Apr 2009, at 17:02, Ken Thomases wrote: On Apr 22, 2009, at 9:45 AM, jonat...@mugginsoft.com wrote: Removing all items in the array bound to arrayController does not cause -canDelete to be evaluated, even though [arrayController canRemove] becomes NO. How are you removing the items

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread Keith Duncan
On 22 Apr 2009, at 15:45, jonat...@mugginsoft.com wrote: Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete You method signature is slightly wrong, it needs to be of the form +keyPathsForValuesAffectingValueFor: Keith ___

performSelectorOnMainThread primitives for withObject

2009-04-22 Thread Torsten Curdt
Hey folks, Is this supposed to work or not? - (void) setActivated:(BOOL)theStatus; [view performSelectorOnMainThread:@selector(setActivated:) withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES]; It does not seem like it works that way. Do I really have to use NSInvocation for this?

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread jonat...@mugginsoft.com
On 22 Apr 2009, at 17:10, Keith Duncan wrote: On 22 Apr 2009, at 15:45, jonat...@mugginsoft.com wrote: Is there a problem with my implementation of + keyPathsForValuesAffectingCanDelete You method signature is slightly wrong, it needs to be of the form +keyPathsForValuesAffectingValueFo

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Michael Ash
On Wed, Apr 22, 2009 at 12:06 PM, Chris Williams wrote: > So you'd rather the user sits there wondering if this huge, highly complex > application (like any Office or Adobe app) that takes 10-15 seconds to load, > even longer on a slow laptop, is actually starting up, or should I click it > again,

Re: performSelectorOnMainThread primitives for withObject

2009-04-22 Thread Volker in Lists
Hi Torsten, do you have more details on what the main thread implements and what you expect it to do, but doesn't do? I am using similar constructs and they work . Volker Am 22.04.2009 um 18:13 schrieb Torsten Curdt: Hey folks, Is this supposed to work or not? - (void) setActivated:(B

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Benjamin Dobson
On 22 Apr 2009, at 17:06:10, Chris Williams wrote: So you'd rather the user sits there wondering if this huge, highly complex application (like any Office or Adobe app) that takes 10-15 seconds to load, even longer on a slow laptop, is actually starting up, or should I click it again, or

Re: performSelectorOnMainThread primitives for withObject

2009-04-22 Thread Ken Thomases
On Apr 22, 2009, at 11:13 AM, Torsten Curdt wrote: Is this supposed to work or not? - (void) setActivated:(BOOL)theStatus; [view performSelectorOnMainThread:@selector(setActivated:) withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES]; It does not seem like it works that way. No, t

Re: performSelectorOnMainThread primitives for withObject

2009-04-22 Thread Michael Ash
On Wed, Apr 22, 2009 at 12:13 PM, Torsten Curdt wrote: > Hey folks, > > Is this supposed to work or not? > >  - (void) setActivated:(BOOL)theStatus; > >  [view performSelectorOnMainThread:@selector(setActivated:) > withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES]; > > It does not seem l

Re: performSelectorOnMainThread primitives for withObject

2009-04-22 Thread Keith Duncan
Is this supposed to work or not? - (void) setActivated:(BOOL)theStatus; [view performSelectorOnMainThread:@selector(setActivated:) withObject:[NSNumber numberWithBool:YES] waitUntilDone:YES]; This won't work since the boolean isn't auto-unboxed. Your method should accept an NSNumber wrappi

RE: performSelectorOnMainThread primitives for withObject

2009-04-22 Thread Kirk Kerekes
You don't have to use NSInvocation -- you could instead define a category on NSView that wrapped setActivated: ( STANDARD COMPOSED IN MAIL WARNING ) - (void) setActivatedWithObjectValue: (id) value { [self setActivated: [value boolValue]]; } OR - (void) setActivatedWithObjectValue: (

Re: iphone SDK session duration

2009-04-22 Thread Luke the Hiesterman
What's wrong with the NSDate solution below? Luke On Apr 21, 2009, at 10:49 PM, Bess Ho wrote: I couldn't get any working responses from iphone developer forum or iphone meetup group. I am hoping that this group with more experience cocoa developers with understanding on MVC model, Xcode.

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Chris Williams
Below: > From: Michael Ash > > I don't really mind splash screens, although I find them to be > pointless. However, if your splash screen does not go into the > background when I click on another app while waiting for your app to > load, then your app goes into the trash instantaneously. Of cou

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Chris Williams
Completely agreed. That's just arrogant and insulting. > From: Benjamin Dobson > > I have seen splash screens that have a higher > window level than normal. This is just wrong. If you're app takes long > enough to load to warrant a splash screen, it takes long enough to > load for the user to ge

NSApplication, AppleEvent and CFRunLoop source strange interaction

2009-04-22 Thread Brian Tietz
I'm working on a cross-platform framework, and am trying to finish up a parallel but portable message dispatch mechanism in the framework when its main thread is running in NSApplication. To this end, I'm using CFRunLoopSourceCreate/CFRunLoopAddSource as the framework message trigger because

non-movable fullscreen window

2009-04-22 Thread Praveen Innamuri
    Initially I created a window with a title-bar (so, I created a window with border and resizable/movable properties). However, depending upon a request, the window should be converted into fullscreen dynamically (without titlebar, non-resizable, non-movable). I am trying to set the application i

Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit

2009-04-22 Thread Iceberg-Dev
On Apr 22, 2009, at 5:50 PM, Corbin Dunn wrote: Howdy, On Apr 22, 2009, at 4:37 AM, Iceberg-Dev wrote: What's the official way to replace _outlineCell and _trackingOutlineCell in Cocoa 64-bit? I do this for 32-bit: @implementation NSOutlineView (PrivateCells) - (NSButtonCell *) outlineC

Re: Time since Login?

2009-04-22 Thread Gwynne Raskind
On Apr 22, 2009, at 12:00 AM, Jeremy W. Sherman wrote: How about just nice(1)-ing the process doing the intense processing to be lower-priority, and letting the scheduler sort it all out? It's my understanding that nice() prioritization is effectively meaningless on Darwin, at least accordi

Re: Really big files and encodings

2009-04-22 Thread Greg Guerin
Seth Willits wrote: In my app, I import data from potentially very large files. In the first pass, I simply mmap'd the entire file, created a string using CFStringCreateWithBytesNoCopy, and go about my business. This works great until it hits the address limit when it's running as a 32-bit

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Michael Ash
On Wed, Apr 22, 2009 at 1:07 PM, Chris Williams wrote: > Below: > >> From: Michael Ash >> >> I don't really mind splash screens, although I find them to be >> pointless. However, if your splash screen does not go into the >> background when I click on another app while waiting for your app to >>

Scaling an entire CGPath?

2009-04-22 Thread Maryanna Rogers
Hi, I need to take a CGPath (a set of lines, curves, etc.) and scale the entire thing as a whole. Is there a simple way to do this? Do I need to use CGPathApply somehow? ~m ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: NSApplication, AppleEvent and CFRunLoop source strange interaction

2009-04-22 Thread Ken Thomases
On Apr 21, 2009, at 9:10 PM, Brian Tietz wrote: I'm working on a cross-platform framework, and am trying to finish up a parallel but portable message dispatch mechanism in the framework when its main thread is running in NSApplication. To this end, I'm using CFRunLoopSourceCreate/CFRunLoop

Re: Time since Login?

2009-04-22 Thread Greg Guerin
Trygve Inda wrote: (b) elapsed time since startup Boot-time is available from sysctl, name "kern.boottime". There's also a function, whose name I forget, that returns microseconds since startup. I wouldn't be surprised if there were additional ways to get this info. My goal is to d

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Greg Guerin
Michael Ash wrote: I'm not saying that you load it lazily on demand. I'm saying that you get the app up and running in a minimal fashion, and *then* establish the connection. Do it immediately, but after you've officially "launched". If you do it modelessly, then the user can still access whatev

Re: [NSOutlineView] _outlineCell and _trackingOutlineCell vs 64-bit

2009-04-22 Thread Corbin Dunn
On Apr 22, 2009, at 10:29 AM, Iceberg-Dev wrote: On Apr 22, 2009, at 5:50 PM, Corbin Dunn wrote: Howdy, On Apr 22, 2009, at 4:37 AM, Iceberg-Dev wrote: What's the official way to replace _outlineCell and _trackingOutlineCell in Cocoa 64-bit? I do this for 32-bit: @implementation NSOut

Re: performSelectorOnMainThread primitives for withObject

2009-04-22 Thread Torsten Curdt
>> It does not seem like it works that way. > > Is it documented to work that way? No. I wish it would always be that simple with documentation :) But seriously - I could have just missed it. Stuff like that do happens sometimes ;) >> Do I really have to use NSInvocation for this? > > Of course n

Re: Scaling an entire CGPath?

2009-04-22 Thread David Duncan
On Apr 22, 2009, at 10:54 AM, Maryanna Rogers wrote: I need to take a CGPath (a set of lines, curves, etc.) and scale the entire thing as a whole. Is there a simple way to do this? Do I need to use CGPathApply somehow? Typically you would just scale the context that you are drawing the pat

Re: Scaling an entire CGPath?

2009-04-22 Thread Maryanna Rogers
This path will never be drawn. ~m On Wed, Apr 22, 2009 at 8:23 PM, David Duncan wrote: > On Apr 22, 2009, at 10:54 AM, Maryanna Rogers wrote: > >> I need to take a CGPath (a set of lines, curves, etc.) and scale the >> entire thing as a whole. Is there a simple way to do this? >> >> Do I need to

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Shawn Erickson
On Wed, Apr 22, 2009 at 9:06 AM, Chris Williams wrote: > blah blah... Far better than a spinning beach ball. If written well an application can launch quickly and then get into UI that informs the user that a lengthy process is taking place while ideally letting them do other tasks that aren't b

objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
Hi All, I have a Core Data app that I am trying to debug. If I simply run it, the main window loads fine. If I try to run in debug mode, an exception is thrown before even loading the main nib. This problem seems to have started when I tried to put manual breakpoints in the code. Now, just

Re: Time since Login?

2009-04-22 Thread Sean McBride
On 4/22/09 3:43 AM, Trygve Inda said: >(b) elapsed time since startup The old TickCount() API returns this. -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Ma

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 12:36 PM, Daniel Child wrote: Since none of the methods below are things I have written, I'm not sure where to go from here. How can I go about finding out what is causing this? Start by printing the exception to the console using the po command when the exception is

-[NSSharedWorkspace openFile:]: Application exits with status 255

2009-04-22 Thread Sidney San Martín
I'm running into an issue that's above my skill level and could really use some guidance. My application has an SUID-root update utility (I know that's unusual, but it's an internal application that needs to be able to update itself even when the logged-in user isn't privileged) stored inside the a

Re: file extensions and Mime Type

2009-04-22 Thread Sean McBride
On 4/22/09 11:31 AM, rajesh said: >We have listed few mime types which we support and mapped them >accordingly for processing. >How can one retrieve the Mime type for a particular file? The filesystem does not store a file's mime type nor its UTI as part of the file's metadata. The only filesyst

Re: Scaling an entire CGPath?

2009-04-22 Thread David Duncan
On Apr 22, 2009, at 11:25 AM, Maryanna Rogers wrote: This path will never be drawn. Then we probably need to know what you are trying to accomplish to give you the best advice. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mail

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
It says Running… (gdb) po $rdi Value can't be converted to integer. (gdb) On Apr 22, 2009, at 2:56 PM, Nick Zitzmann wrote: On Apr 22, 2009, at 12:36 PM, Daniel Child wrote: Since none of the methods below are things I have written, I'm not sure where to go from here. How can I go abo

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 1:28 PM, Daniel Child wrote: It says Running… (gdb) po $rdi Value can't be converted to integer. (gdb) Are you sure your program is running as Intel 64? The $rdi register is only available to X86-64 applications. In 32-bit Intel apps, arguments to functions are p

Re: non-movable fullscreen window

2009-04-22 Thread douglas welton
Hi Praveen, 1) At present (leopard), you can't dynamically change the windows style from bordered to non-bordered. The style is set at initialization and you can't change it after that. See the Window Programming Guide section for "Setting a Window's Appearance" 2) When you say you us

Re: Scaling an entire CGPath?

2009-04-22 Thread Tobias Zimmerman
Sorry if I am missing the point, but is [CG|NS]AffineTransform what you are looking for? I have only used them in at the Cocoa view level (NSBezierPath, NSAffineTransform), so my information may not be correct for CGPath. The "Transforms" section of the Quartz 2D guide may be helpful: >

Re: Opening file with C++ iostream from application bundle

2009-04-22 Thread Scott Ribe
You need to use a full path, not count on the default directory--and others have provided code to get the path. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: Scaling an entire CGPath?

2009-04-22 Thread Henry McGilton (Boulevardier)
On Apr 22, 2009, at 11:25 AM, Maryanna Rogers wrote: This path will never be drawn. ~m On Wed, Apr 22, 2009 at 8:23 PM, David Duncan wrote: On Apr 22, 2009, at 10:54 AM, Maryanna Rogers wrote: I need to take a CGPath (a set of lines, curves, etc.) and scale the entire thing as a whole.

NSProgressIndicator

2009-04-22 Thread Livio Isaia
I have a NSProgressIndicator that indicates the progress of a disk saving job. Initially it's hidden so: [myIndicator setMaxValue:count]; [myIndicator setMinValue:0]; [myIndicator setDoubleValue:0]; [myIndicator setHidden:NO]; [myIndicator displayIfNeeded]; Then I do the job calling: [myIndica

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
Well, I think so. I thought all Core2 Duos run 64-bit. The build settings are for Xcode 3.1, OS 10.5. Are there any other settings I should be concerned with? Also, tried the Intel 32-bit, and that also said it couldn't be converted to an integer. On Apr 22, 2009, at 3:31 PM, Nick Zitzman

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 2:13 PM, Daniel Child wrote: Well, I think so. I thought all Core2 Duos run 64-bit. Yes, but what is the architecture of your program? Is it i386 or is it x86_64? If it's the former, then it is not an Intel 64 program. If you don't know, then it's probably i386. Also

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
You're right. (gdb) po $rdi Value can't be converted to integer. (gdb) po *(int *)($ebp+8) Cannot access memory at address 0x1 (gdb) On Apr 22, 2009, at 4:16 PM, Nick Zitzmann wrote: On Apr 22, 2009, at 2:13 PM, Daniel Child wrote: Well, I think so. I thought all Core2 Duos run 64-bit. Ye

Re: Really big files and encodings

2009-04-22 Thread Seth Willits
On Apr 22, 2009, at 8:09 AM, Michael Ash wrote: Do your files have regularly occurring newlines like most normal text files? If so, then you can just scan for a \r or \n and break it up there. Virtually every encoding you'll encounter today encodes \r and \n as \r and \n, and will not use those

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Nick Zitzmann
On Apr 22, 2009, at 2:20 PM, Daniel Child wrote: (gdb) po *(int *)($ebp+8) Cannot access memory at address 0x1 (gdb) Something's still not right here. On Intel 32, $ebp+8 points to the first argument in a function call, which would be the NSException object passed into objc_exception_thr

Identical Attributes, Only one works

2009-04-22 Thread Walker Argendeli
I realize that this question is very vague, but I'm just baffled but it. I have an NSLevelIndicator with its value bound to my model's myEntity.Selection.Priority attribute. Priority is a required Float with a min value of 0, max of 3, and default of 1. How it functions is that I have a t

Re: Problem implementing keyPathsForvaluesAffecting

2009-04-22 Thread Sean McBride
On 4/22/09 3:45 PM, jonat...@mugginsoft.com said: >+ (NSSet *)keyPathsForValuesAffectingCanDelete >{ > return [NSSet setWithObjects:@"property1", @"property2", >@"arrayController.canRemove", nil]; >} I, and others, have never been able to get dependent key paths working when you traverse a co

Re: non-movable fullscreen window

2009-04-22 Thread Sean McBride
On 4/22/09 6:45 PM, Praveen Innamuri said: >    Initially I created a window with a title-bar (so, I created a >window with border and resizable/movable properties). However, >depending upon a request, the window should be converted into >fullscreen dynamically (without titlebar, non-resizable, no

Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Jean-Daniel Dupas
Le 22 avr. 09 à 20:31, Shawn Erickson a écrit : On Wed, Apr 22, 2009 at 9:06 AM, Chris Williams wrote: blah blah... Far better than a spinning beach ball. If written well an application can launch quickly and then get into UI that informs the user that a lengthy process is taking place w

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread Daniel Child
OK, I've set those commands and got this. Running… Cannot perform operation without a managed object context Value can't be converted to integer. (gdb) I'm not sure why it thinks it needs one BEFORE I do anything. I described things slightly incorrectly. If I set a breakpoint: the window (f

Removing or ignoring "lineWidth" property of an NSBezierPath instance

2009-04-22 Thread Tobias Zimmerman
I am trying to find a way to ensure that a series of NSBezierPaths are drawn using [NSBezierPath defaultLineWidth] value. However, contrary to documentation and expectation, my paths seem to automatically assign themselves the value 1.0 for their own lineWidth property. First, the documentation f

NSOpenPanel listing .app's and Mac OS X executables

2009-04-22 Thread Arun
Hi, Is there any way when a NSOpenPanel is launched, only .app's and Mac OS X executables are allowed to select and gray out all the other file types? Thanks Arun ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Core Data Fetches + Transient Properties + NSPredicateEditor = Sadness

2009-04-22 Thread Melissa J. Turner
On Apr 22, 2009, at 02:12, Mike Abdullah wrote: On 22 Apr 2009, at 08:48, Ben Trumbull wrote: Of course, why Apple couldn't have then added automatic support for in-memory matching as the second step I don't know Probably because nobody ever cared enough to file an enhancement request, a

Re: -[NSSharedWorkspace openFile:]: Application exits with status 255

2009-04-22 Thread Kyle Sluder
You would be very well served to read TN2083, Daemons and Agents: http://developer.apple.com/technotes/tn2005/tn2083.html . You seem to be unaware of some of the pretty important architectural considerations that will affect your implementation. Notably, some things changed in Leopard that will h

RE: Bindings making NSNumberFormatter strange

2009-04-22 Thread Ulai Beekam
Noone has an idea? To elaborate, when not using bindings, the default behavior of text fields with a number formatter is that when a user tries to enter "abc" in it, the text field refuses to lose focus and makes a beeping sounds. However, when the text field's value binding has been set, a s

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-04-22 Thread Dave Keck
- (void)setAllowedFileTypes:(NSArray *)types ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Upda

Re: NSOpenPanel listing .app's and Mac OS X executables

2009-04-22 Thread Kyle Sluder
On Wed, Apr 22, 2009 at 5:59 PM, Dave Keck wrote: > - (void)setAllowedFileTypes:(NSArray *)types Note that on Leopard this method takes an array of UTIs, so you might want to take a look at the list of System-Declared UTIs at http://developer.apple.com/DOCUMENTATION/Carbon/Conceptual/understandin

Re: Time since Login?

2009-04-22 Thread Alastair Houghton
On 22 Apr 2009, at 18:31, Gwynne Raskind wrote: On Apr 22, 2009, at 12:00 AM, Jeremy W. Sherman wrote: How about just nice(1)-ing the process doing the intense processing to be lower-priority, and letting the scheduler sort it all out? It's my understanding that nice() prioritization is eff

Re: file extensions and Mime Type

2009-04-22 Thread Alastair Houghton
On 22 Apr 2009, at 20:14, Sean McBride wrote: On 4/22/09 11:31 AM, rajesh said: We have listed few mime types which we support and mapped them accordingly for processing. How can one retrieve the Mime type for a particular file? The filesystem does not store a file's mime type nor its UTI as

Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance

2009-04-22 Thread Alastair Houghton
On 22 Apr 2009, at 22:19, Tobias Zimmerman wrote: First, the documentation for NSBezierPath’s -(CGFloat)lineWidth method states that: "If no value was set explicitly for the receiver, this method returns the default line width." This suggests that a newly created NSBezierPath should have no

Re: objc_exception_throw prior to launching nib file

2009-04-22 Thread jmunson
You shoul post your code as it is difficult to discern your problem with the way you are describing things. In other words: Cannot perform operation without a managed object context What operation is being performed that could require an moc? If I set a breakpoint: In what, on what?

Re: -[NSSharedWorkspace openFile:]: Application exits with status 255

2009-04-22 Thread Sidney San Martín
Note: I'm re-sending this to the list. Accidently replied only to the sender. --- I have read TN2083. Is there anything in particular that sticks out as bad practice or as the potential cause of my issue? Note that the application in question is not a daemon and will always be launched by a consol

Re: Bindings making NSNumberFormatter strange

2009-04-22 Thread Keary Suska
On Apr 22, 2009, at 3:57 PM, Ulai Beekam wrote: To elaborate, when not using bindings, the default behavior of text fields with a number formatter is that when a user tries to enter "abc" in it, the text field refuses to lose focus and makes a beeping sounds. However, when the text field'

[OT] Re: How to make app login window to look like OS X user login window ?

2009-04-22 Thread Alastair Houghton
On 22 Apr 2009, at 17:06, Chris Williams wrote: So you'd rather the user sits there wondering if this huge, highly complex application (like any Office or Adobe app) that takes 10-15 seconds to load, even longer on a slow laptop, is actually starting up, or should I click it again, or is m

Re: -[NSSharedWorkspace openFile:]: Application exits with status 255

2009-04-22 Thread Sidney San Martín
I just discovered a new behavior that might be helpful. I'm storing my helper in MacOS (so that it can be located with [NSBundle pathForAuxiliaryExecutable:]). The call to openFile: causes both my application and helper to be executed. My application exits (or so launchd says, even if I put an NSLo

How to: many users edit same file at the same time ?

2009-04-22 Thread Mario Kušnjer
Hello everyone ! Again me with another bizarre question So I am interested how to implement a possibility that many users can edit same file (text, XML, sheet, database entry) at the same time ? Forget the networking part for now and focus on the part of what to use for file: txt file, xml f

Quick question about adding an NSPanel

2009-04-22 Thread Chris Goedde
Hi, I have a quick question about adding an NSPanel to an app. I'm following Hillegass's book, so I have a separate controller and nib for the panel. I added an IBAction (showSettingsPanel:) to my main app controller and hooked it up to the Preferences... menu item. Works great. This is

RE: Bindings making NSNumberFormatter strange

2009-04-22 Thread Ulai Beekam
So I really must make a custom field editor to accomplish on-the-fly validation (i.e. disallowing on-the-fly invalid characters)? I suppose I could do a custom field editor and override keyDown:, checking for characters in [NSCharacterSet decimalDigitCharacterSet], etc. In fact, having made so

Re: Removing or ignoring "lineWidth" property of an NSBezierPath instance

2009-04-22 Thread Graham Cox
On 23/04/2009, at 7:19 AM, Tobias Zimmerman wrote: (By way of further explanation, the project this arises in involves a set of bezier paths that are generated in one program and archived for use in a separate program. I would like the lineWidth and other drawing specifics such as line/fi

Re: Quick question about adding an NSPanel

2009-04-22 Thread Graham Cox
On 23/04/2009, at 10:19 AM, Chris Goedde wrote: I have a quick question about adding an NSPanel to an app. I'm following Hillegass's book, so I have a separate controller and nib for the panel. I added an IBAction (showSettingsPanel:) to my main app controller and hooked it up to the Prefe

[MEET] Silicon Valley CocoaHeads, Thursday, April 23

2009-04-22 Thread Joel Norvell
Silicon Valley CocoaHeads is meeting Thursday, April 23 at 7pm (sharp) Apple Building 4 — Garage 1 Meeting Room As announced on Theocacao: "Our featured speaker is Wil Shipley of Delicious Monster, who will share what he's learned while writing his

Forcing controller to update binding of compound value

2009-04-22 Thread Greg Hoover
I'm using bindings to display values in a table. I use an array controller bound to the attribute of a model object. The controller "handles content as compound value" because of the way I access and update the content from a larger set. Everything is great in that values are retrieved a

  1   2   >