Re: Accuracy of timers?

2009-04-22 Thread Wade Tregaskis
As others have noted, NSTimers are bound by the runloops they operate in. Though you can always spawn a dedicated thread, create a run loop, add your timer, and then go; since nothing else is in the runloop, the latency should be quite low. I'd try that first, and see if it meets your nee

Re: ObjectAlloc and objects that should have been released

2009-04-22 Thread Peter N Lewis
On 23/04/2009, at 10:19 , Miles wrote: I have a timer that continues calling a method that for the moment (testing purposes) only contains: NSArray *tmp = [NSArray arrayWithArray:animatingTilesArray]; The time is setup like this: animationTimer= [NSTimer scheduledTimerWithTimeInterval:0.5

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

2009-04-22 Thread Greg Guerin
Mario Kušnjer wrote: Thanks for your help Greg, but give me some credit. I know what Google is for. Been there, done that. And now I'm here. Did you read the Wikipedia article on collaborative real-time editors? Did you follow any of the links in that article? Because it doesn't seem l

Re: Long Time Dealy When getting Vended Object

2009-04-22 Thread Kiran Kumar S
These are the lines of code i got blocked 1. When Remote Machine is not in Network 553 -[PXDistributedObjectsClient serverObjectWithReestablishingConnection] 553 -[PXDistributedObjectsClient serverObject] 553 _CF_forwarding_prep_0 553 ___forwarding___

Re: Accuracy of timers?

2009-04-22 Thread Jeremy W. Sherman
Timers can only fire when your app is running in the run loop mode that they are part of. You can investigate alarm(3) and setitimer(3), but I don't know how much more accurate they will be. Mac OS X is not a real-time OS. —Jeremy On Thu, Apr 23, 2009 at 12:31 AM, M Pulis wrote: > Expect the sa

Re: Accuracy of timers?

2009-04-22 Thread Joar Wingfors
On 22 apr 2009, at 21.31, M Pulis wrote: Expect the same here. I believe they are not guaranteed for accuracy... from Apple: "Because of the various input sources a typical run loop manages, the effective resolution of the time interval for a timer is limited to on the order of 50-100 mi

Re: Accuracy of timers?

2009-04-22 Thread M Pulis
Expect the same here. I believe they are not guaranteed for accuracy... from Apple: "Because of the various input sources a typical run loop manages, the effective resolution of the time interval for a timer is limited to on the order of 50-100 milliseconds." Reference google for NSTimer

Re: Time since Login?

2009-04-22 Thread Scott Ribe
> There's > also a function, whose name I forget, that returns microseconds since > startup. "Microseconds" ;-) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Accuracy of timers?

2009-04-22 Thread Eric E. Dolecki
I'm wondering generally how accurate timers can be expected to be. Are they generally accurate within a few ms depending on what else is going on in an application? Is threading an answer to most accurate timing? Just curious here. I'm coming from another language where timers can be off fairly sig

Re: NSProgressIndicator

2009-04-22 Thread Jeremy W. Sherman
> > And finally: > > . . . > [myIndicator setMaxValue:0]; > [myIndicator setMinValue:0]; > [myIndicator setDoubleValue:0]; > This looks to be your problem. Your max and min values are identical following your first run. Unless you're reasserting the correct values before redisplaying, they'll be st

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

2009-04-22 Thread Chris Hanson
On Apr 22, 2009, at 7:30 PM, Mario Kušnjer wrote: Well I was thinking this way: First window that shows when you start the app is login window because user can't use an app if he doesn't log in. My point is that this isn't the logic your application should be following. Instead, your app

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

2009-04-22 Thread WT
On Apr 23, 2009, at 4:48 AM, Mario Kušnjer wrote: So yes, what API should I be using that has the ability to perform writing (and reading) to a file on disk (local or remote) without file-locking and other options related to this subject (that enables multiple users access the same file at

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

2009-04-22 Thread WT
On Apr 23, 2009, at 4:17 AM, Mario Kušnjer wrote: On 2009.04.23, at 04:02, Greg Guerin wrote: Use the internet. The two simplest things to try are: 1. Google. 2. Wikipedia. Searching Wikipedia for the keyword "SubEthaEdit" finds a nice article about the product itself: http://en.wikipedi

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

2009-04-22 Thread Michael Ash
On Wed, Apr 22, 2009 at 10:48 PM, Mario Kušnjer wrote: > So yes, what API should I be using that has the ability to perform writing > (and reading) to a file on disk (local or remote) without file-locking and > other options > related to this subject (that enables multiple users access the same fi

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 10:21 PM, Kyle Sluder wrote: > On Wed, Apr 22, 2009 at 10:08 PM, Chris Hanson wrote: >> And instead of checking network connectivity, your application should just >> try to use the network and fail gracefully when it's not available. After >> all, it could go away between

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

2009-04-22 Thread Michael Ash
On Wed, Apr 22, 2009 at 7:28 PM, Sidney San Martín wrote: > 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 execut

Re: How to show items in a list ,grid or coverflow?

2009-04-22 Thread Kiel Gillard
List: NSTableView/NSOutlineView/NSBrowser Grid: NSCollectionView Coverflow: Use a layer backed (Core Animation) NSView Kiel On 23/04/2009, at 12:36 PM, Bright wrote: Hi, In my App's ta

Re: How to show items in a list ,grid or coverflow?

2009-04-22 Thread Graham Cox
On 23/04/2009, at 12:36 PM, Bright wrote: In my App's tableview, I want to show the items in a list ,grid or coverflow. which APIs should I to call?Could anybody tell me? Tks very much. Your question is too broad. Break it down. Basically, each representation of the data is a separate

Re: Move a NSTableView

2009-04-22 Thread Graham Cox
On 23/04/2009, at 12:56 PM, Chris Purcell wrote: My problem is how exactly to move the table view down. I tried getting the frame of the table view's enclosed NSScrollView and then I was quite sure what method to use (probably something in Core Graphics right?) to move it down. -setFra

Move a NSTableView

2009-04-22 Thread Chris Purcell
Hello, I'm trying to shift a NSTableView down when the user is searching (using a NSSearchField) to display a custom view with some filtering options (like when you do a Finder search). Then hiding the custom view when the user is not searching. My problem is how exactly to move the tabl

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

2009-04-22 Thread Mario Kušnjer
On 2009.04.23, at 04:23, Kyle Sluder wrote: So you're asking "what API should I be using?" Break it down a bit. Think about what resources SubEthaEdit uses: 1. General application type stuff (windows, etc.) 2. Text 3. Network Then search from there. I realize that everything gets interconn

How to show items in a list ,grid or coverflow?

2009-04-22 Thread Bright
Hi, In my App's tableview, I want to show the items in a list ,grid or coverflow. which APIs should I to call?Could anybody tell me? Tks very much. Bright ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

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.23, at 04:08, Chris Hanson wrote: You shouldn't always show a log-in panel in your application either; Mac OS X has the Keychain for secure storage of user credentials, you should only ask the user to log in to your service if there's no stored credential or they've done somethi

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

2009-04-22 Thread Kyle Sluder
On Wed, Apr 22, 2009 at 6:41 PM, Sidney San Martín wrote: > I have read TN2083. Is there anything in particular that sticks out as > bad practice or as the potential cause of my issue? I was under the impression that you were attempting to do unattended updates. --Kyle Sluder ___

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

2009-04-22 Thread Kyle Sluder
On Wed, Apr 22, 2009 at 10:17 PM, Mario Kušnjer wrote: > But that doesn't answers questions about how it is working "under the hud", > what classes, functions and methods it combines > and uses in Cocoa (read this: What framework documentation should I be > looking for to read concerning this them

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

2009-04-22 Thread Kyle Sluder
On Wed, Apr 22, 2009 at 10:08 PM, Chris Hanson wrote: > And instead of checking network connectivity, your application should just > try to use the network and fail gracefully when it's not available. After > all, it could go away between when you check and actually start using it, or > while you'

ObjectAlloc and objects that should have been released

2009-04-22 Thread Miles
I have a timer that continues calling a method that for the moment (testing purposes) only contains: NSArray *tmp = [NSArray arrayWithArray:animatingTilesArray]; The time is setup like this: animationTimer= [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(doAnimation:

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

2009-04-22 Thread Mario Kušnjer
On 2009.04.23, at 04:02, Greg Guerin wrote: Use the internet. The two simplest things to try are: 1. Google. 2. Wikipedia. Searching Wikipedia for the keyword "SubEthaEdit" finds a nice article about the product itself: http://en.wikipedia.org/wiki/SubEthaEdit The first link on that p

NSSearchField and Thai

2009-04-22 Thread David Allouch
Hi All, (forgive my english i am french) NSSearchField which is basically an NSTextField is working fine in every languages except Thai. What happens is that in Thai some letters override each others in the NSSearchField . Didn't really care until we start getting complains from Thai users

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

2009-04-22 Thread Chris Hanson
You shouldn't always show a log-in panel in your application either; Mac OS X has the Keychain for secure storage of user credentials, you should only ask the user to log in to your service if there's no stored credential or they've done something like reset their password. And instead of c

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

2009-04-22 Thread Greg Guerin
Mario Kušnjer wrote: Something that will help me to get started. I haven't provided What I Have Tried because I Haven't Tried at all. Because I don't know where to start. Use the internet. The two simplest things to try are: 1. Google. 2. Wikipedia. Searching Wikipedia for the keyword

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

2009-04-22 Thread Mario Kušnjer
On 2009.04.23, at 03:20, Greg Guerin wrote: Seriously, though, it's not an easy problem, and if you have to ask "How to" without even describing What Have You Tried, then it probably means it's too hard for you to solve simply by asking someone else "How to". Maybe you should consider

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

2009-04-22 Thread Greg Guerin
Mario Kušnjer wrote: To explain what I'm trying to figure out, is how collaborative editor like SubEthaEdit works (with files, file-locking, accessing, saving, etc) Magic: Pure & unadulterated. Quantity: One small truckload. Seriously, though, it's not an easy problem, and if you have to

Re: Quick question about adding an NSPanel

2009-04-22 Thread Chris Goedde
On Apr 22, 2009, at 7:36 PM, Graham Cox wrote: On 23/04/2009, at 10:19 AM, Chris Goedde wrote: This isn't actually a preference panel, though, and I want the panel to open when the app launches so I added the line: [ self showSettingsPanel: self ]; to the end of the awakeFromNib method of

Re: Bindings making NSNumberFormatter strange

2009-04-22 Thread Nathan Kinsinger
On Apr 22, 2009, at 6:24 PM, Ulai Beekam wrote: 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

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

[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

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

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: 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

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

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

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

[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: 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'

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: 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: 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: 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: 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: 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: 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: 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: -[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: 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

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

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

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

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: 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: 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

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: 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

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 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: 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
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

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: 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.

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 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: 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: 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: 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: 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: 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

-[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: 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

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

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: 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

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: 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: 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: [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: 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: 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: 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

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: 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 >>

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: 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: [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

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

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

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

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: 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: 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: 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

  1   2   >