Re: Quicktime Movie View error

2009-02-07 Thread elliott cable
Git works fine on binary files - I just don't want to mark them as binary, because I enjoy retaining my diffs and merging, however tenuous that power may be. While the merging may be not perfect, it works 99% of the time - and that's more than enough. It works especially well if you commit as

Re: Animated toolbar

2009-02-07 Thread Robert Marini
In short, applications that are ported to the platform with the express intent of maintaining their look and feel from Windows do little more than treat OS X users as second-class citizens. No one likes paying money for that feeling so at the end of the day, I doubt the port will see even

Re: Quicktime Movie View error

2009-02-07 Thread Graham Cox
On 7 Feb 2009, at 7:00 pm, elliott cable wrote: While the merging may be not perfect, it works 99% of the time - and that's more than enough. It works especially well if you commit as granularly as I do (one commit between every one and three minutes, no longer than 5 minutes - every single

Re: Quicktime Movie View error

2009-02-07 Thread elliott cable
I don't merge every 5 minutes, I commit every 5 minutes. One of the advantages of extremely granular commits is that I'm also pulling in other peoples' changes practically in realtime - and more importantly, I use git's feature branching. So I only have to do a merge every, hmm, half month to a

Re: how to get iphone calendar database file

2009-02-07 Thread Mike Abdullah
You can't. Please file a bug report requesting it. On 7 Feb 2009, at 04:17, Ankur Diyora wrote: Hello all, I want iphone calendar database file(sqlite). How can i get this file from iPhone ? Thank you.. ___ Cocoa-dev mailing list

Re: Animated toolbar

2009-02-07 Thread Christian Graus
I tend to agree with much of this. It's worth mentioning that no Windows app I know of acts this way, except ours. My boss saw the hyperbar WPF sample and decided he wanted that in our app, and it works great in windows, because we just go full screen and cover the taskbar, so only our floating,

Re: Animated toolbar

2009-02-07 Thread Graham Cox
On 7 Feb 2009, at 8:46 pm, Christian Graus wrote: I don't see us using a standard toolbar, our big fear will be that we don't want to lose the pizzaz we have under Windows and have a bog standard looking Mac app, it will just look like a poor cousin of our windows app then. It.

Re: Animated toolbar

2009-02-07 Thread Christian Graus
Well, our prospective Mac users are all in a niche market, they have all seen the marketing for our windows version, and most of them are actually *using* our windows version. So, they WILL be aware of our windows version, they ARE using the Windows version and waiting for the Mac version, and

Re: Animated toolbar

2009-02-07 Thread Joar Wingfors
On Feb 7, 2009, at 1:53 AM, Graham Cox wrote: I don't see us using a standard toolbar, our big fear will be that we don't want to lose the pizzaz we have under Windows and have a bog standard looking Mac app, it will just look like a poor cousin of our windows app then. It. Doesn't.

Re: Animated toolbar

2009-02-07 Thread Christian Graus
In short, applications that are ported to the platform with the express intent of maintaining their look and feel from Windows do little more than treat OS X users as second-class citizens. No one likes paying money for that feeling so at the end of the day, I doubt the port will see even remote

Re: NSTableView Popup Column issue

2009-02-07 Thread Ken Thomases
On Feb 6, 2009, at 9:47 AM, Jon C. Munson II wrote: I'm having an issue with a popup in a tableview. The Selected Object binding is configured thus: Bind to: tblPattern_Yarn Controller Key: arrangedObjects Model Key path: relYarn Everything else is the defaults that IB provides when that

Re: Read lines from very large text file

2009-02-07 Thread Michael Ash
On Sat, Feb 7, 2009 at 12:39 AM, Clark Cox clarkc...@gmail.com wrote: Even if you delete the file from the filesystem, you are just deleting the mapping from that particular filename to the file's actual data. The actual file still there until the last process with an open handle closes it, so

Re: Read lines from very large text file

2009-02-07 Thread René v Amerongen
Thus the warning: if a file disappears while you have it memory mapped, and you try to access it, you will crash. Does this mean that we should check every time the existence of the file before we try to read anything from the memory mapped file? RvA

Re: Read lines from very large text file

2009-02-07 Thread Michael Ash
On Sat, Feb 7, 2009 at 7:57 AM, René v Amerongen apple...@xs4all.nl wrote: Thus the warning: if a file disappears while you have it memory mapped, and you try to access it, you will crash. Does this mean that we should check every time the existence of the file before we try to read

Re: NSProgressIndicator (spinning) on a dark background?

2009-02-07 Thread Andreas Mayer
Am 06.02.2009 um 18:55 Uhr schrieb Guy Umbright: I have a black background and would like to display a spinning progress indicator but it draws with a light background. Is there a way to do this with NSProgressIndicator? I don't think there is. But you could modify my

Re: Relation between Document based apps and Array Controllers in IB

2009-02-07 Thread I. Savant
On Feb 6, 2009, at 3:40 PM, donbarvazo wrote: Cocoa Application = Does not work Did the same as above. It does not work, and I get the error : reason: '[NSApplication 0x114720 valueForUndefinedKey:]: this class is not key value coding-compliant for the key persons Ask yourself (and the

Re: NSProgressIndicator (spinning) on a dark background?

2009-02-07 Thread Andreas Mayer
Am 07.02.2009 um 14:39 Uhr schrieb Andreas Mayer: But you could modify my AMIndeterminateProgressIndicatorCell class: http://www.harmless.de/cocoa-code.php#progressindicator Well, this seemed to be a useful addition, so I just added a color property myself. :) Andreas

Re: Read lines from very large text file

2009-02-07 Thread Steve Sisak
At 1:38 PM +1100 2/3/09, Jacob Rhoden wrote: On 3/02/2009 8:41 AM, Kenneth Bruno II wrote: I am wondering what the best way to read a text file, line by line, when the file size is much larger than available memory. For very large files you probably want to use NSFileHandle. With the method

name == $FETCH_SOURCE.name -- Doesn't find dupes?

2009-02-07 Thread Jerry Krinock
I'm trying to use a fetched property for the first time, to find duplicate objects, for example, objects with the same `name` property. Documentation for Fetched Properties says that The source [$FETCH_SOURCE] refers to the specific managed object that has this property. So, I define a

Re: performSelector:withObject fails with class object

2009-02-07 Thread Tron Thomas
Greg Parker wrote: On Feb 5, 2009, at 9:50 PM, Tron Thomas wrote: I have a couple of classes that are delcared like this: #import objc/objc.h #import objc/Object.h @interface SomeClass : Object { @private // Instance data members ... } + (SomeClass*)instanceFromData:(id)data; // Other

-[NSTreeController moveNode:toIndexPath:] broken?

2009-02-07 Thread Tomas Franzén
Hi, I recently began exploring NSTreeController, but I'm experiencing problems with its moveNode:toIndexPath:. It's new to Leopard, but seems to be consistently moving nodes to incorrect indexes. There's a previous list post about exactly this, but without replies.

Re: NSTableView Popup Column issue

2009-02-07 Thread mmalc Crawford
On Feb 6, 2009, at 10:05 PM, jmun...@his.com wrote: Yes, Core Data does allow for many-to-many relationships. However, after a solid week of fooling around with trying to get that to work (there are only so many permutations one can use), I was not able to produce a working prototype.

Re: Read lines from very large text file

2009-02-07 Thread Steve Sisak
At 9:46 AM -0800 2/7/09, Joar Wingfors wrote: On Feb 7, 2009, at 6:55 AM, Steve Sisak wrote: Umm, unless I'm totally missing something, what's wrong with fopen() and fgets(), possibly followed with [NSString stringWithCString] on each line? What's wrong is that they won't allow you to

Re: Read lines from very large text file

2009-02-07 Thread Clark Cox
On Sat, Feb 7, 2009 at 10:27 AM, Steve Sisak sgs-li...@codewell.com wrote: At 9:46 AM -0800 2/7/09, Joar Wingfors wrote: On Feb 7, 2009, at 6:55 AM, Steve Sisak wrote: Umm, unless I'm totally missing something, what's wrong with fopen() and fgets(), possibly followed with [NSString

Re: Animated toolbar

2009-02-07 Thread Nick Zitzmann
On Feb 7, 2009, at 3:11 AM, Christian Graus wrote: Well, our prospective Mac users are all in a niche market, they have all seen the marketing for our windows version, and most of them are actually *using* our windows version. So, they WILL be aware of our windows version, they ARE using

Re: NSTableView Popup Column issue

2009-02-07 Thread Kyle Sluder
On Sat, Feb 7, 2009 at 1:05 AM, jmun...@his.com wrote: Actually, it isn't obvious. If it were, I'd get it. The reason selection didn't work (and I should have seen that earlier) is that it is singular in nature. If you create a form, with fields on it, you'd use selection as you are only

NSButton referencing outlet won't work?

2009-02-07 Thread Richard Bannister
Folks, I'm sure this qualifies as a newbie question, but I've just spent an hour trying to figure something out and I'm stumped... I am building a NSDocument-based application. The main document window has a NSButton in it, with a referencing outlet connected to the following:

Re: NSButton referencing outlet won't work?

2009-02-07 Thread Richard Bannister
On 7 Feb 2009, at 20:02, cocoa-dev-requ...@lists.apple.com wrote: I'm sure this qualifies as a newbie question, but I've just spent an hour trying to figure something out and I'm stumped... And wouldn't you know, two minutes after asking the question I worked it out. awakeFromNib. Duh.

Re: NSButton referencing outlet won't work?

2009-02-07 Thread Robert Claeson
On 7 Feb 2009, at 20:04, Richard Bannister wrote: On 7 Feb 2009, at 20:02, cocoa-dev-requ...@lists.apple.com wrote: I'm sure this qualifies as a newbie question, but I've just spent an hour trying to figure something out and I'm stumped... And wouldn't you know, two minutes after asking

Re: name == $FETCH_SOURCE.name -- Doesn't find dupes?

2009-02-07 Thread Kyle Sluder
On Sat, Feb 7, 2009 at 11:31 AM, Jerry Krinock je...@ieee.org wrote: What's wrong here ? You put the expression in quotes, thus turning it into a string literal? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Mixing C++ and Objective-C

2009-02-07 Thread Steve Wart
Solved, thanks to the archives. #ifdef __cplusplus extern C { #endif extern CFunctionHere #ifdef __cplusplus } #endif Cheers, Steve On Sat, Feb 7, 2009 at 12:29 PM, Steve Wart steve.w...@gmail.com wrote: I am trying to build an application that uses some C++ classes, based on Apple's

Re: NSTask + incomplete stdout at end of process

2009-02-07 Thread xEsk PiV
Hi again, I finally solved the problem implementing a pseudo-tty. Thank you again for your information. Xesc. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: name == $FETCH_SOURCE.name -- Doesn't find dupes?

2009-02-07 Thread Jerry Krinock
On 2009 Feb 07, at 12:57, Kyle Sluder wrote: You put the expression in quotes, thus turning it into a string literal? Not me, Kyle. The predicate-building sheet in Xcode's xcdatamodel editor did that! I had been wondering if that was the problem, but I find it futile to argue with

Re: name == $FETCH_SOURCE.name -- Doesn't find dupes?

2009-02-07 Thread mmalc Crawford
On Feb 7, 2009, at 1:53 PM, Jerry Krinock wrote: I had been wondering if that was the problem, but I find it futile to argue with the tools. How does one set a placeholder such as $FETCH_SOURCE in Xcode's xcdatamodel editor?

SOAP Client - OpenSource - Call for supporting developpers

2009-02-07 Thread Marc De Roover
Ladies Gentlemen, SOAP Client is a free Cocoa-based developer tool for Mac OS X that allows you access and debug WSDL SOAP-based Web Services from the comfort of your desktop. SOAP Client is now an opensource project http://code.google.com/p/mac-soapclient/ As some additional

Re: Animated toolbar

2009-02-07 Thread Christian Graus
Fair enough. I guess that brings this discussion to a close, so thanks to everyone who responded. It's been very valuable to me, even if it didn't go in the direction I was hoping. It's certainly convinced me that our toolbar needs to go, although what we replace it with, I have no idea at this

Re: Empty window appears when going fullscreen in awakeFromNib

2009-02-07 Thread Adam Gerson
Hey John, Does this help? I am hiding the dock elsewhere with SetSystemUIMode. // Calculate the size to make the new screen. NSRect fullScreenRect = [[[NSScreen screens] objectAtIndex:0] frame]; // Uses the menu bar screen. -mainWindow has problems. fullScreenRect.size.height -= [[NSApp

re: name == $FETCH_SOURCE.name -- Doesn't find dupes?

2009-02-07 Thread Ben Trumbull
Jerry, Does name == $FETCH_SOURCE.name work as the predicate format ? Because if you quoted it as name == \$FETCH_SOURCE.name\ then that's a literal string, not a keypath. - Ben ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Syntax errors, undeclared variables

2009-02-07 Thread Kevin Walzer
Peter Duniho wrote: On Feb 6, 2009, at 6:51 PM, Kevin Walzer wrote: [...] I'm not sure what is causing these errors. Line 11 is set up like this: -(int)switchIcon (ClientData cd, Tcl_ip *ip, int objc, Tcl_Obj *objv[]); The error is because your method prototype syntax is completely wrong.

Running out of memory when adding CGImageRef-to-NSImage frames to QTMovie in NSOperation subclass

2009-02-07 Thread Michael Hanna
I have an NSOperation that opens a CGImageRef from a digital camera(large file). It creates a full-size TIFFRepresentation in RAM, then scales it down to a smaller CGContextRef. I create an NSImage out of this CGContextRef. This same NSOperation then adds it to a QTMovie with the

iphone and images issues

2009-02-07 Thread Emmanuel Pinault
So I dragged and dropped an image folder into my iphone app under the ressources. I specified to copy it. Now when I build the application, it seems that apple underlying just put all the file in a flat structure. So all my files are located in the same place which is kind of messy I believe

Re: iphone and images issues

2009-02-07 Thread Sherm Pendley
On Feb 7, 2009, at 8:10 PM, Emmanuel Pinault wrote: So I dragged and dropped an image folder into my iphone app under the ressources. I specified to copy it. Now when I build the application, it seems that apple underlying just put all the file in a flat structure. If you don't want the

Re: iphone and images issues

2009-02-07 Thread Bryan Henry
Keep in mind that if you do this, though, Xcode's PNG optimization operations (switching RGBA - GBRA and premultiplying the alpha) won't occur if you have any PNGs in that folder - it'll just copy the folder whole. How is having a messy bundle any problem? Its not like it actually

Re: iphone and images issues

2009-02-07 Thread Robert Marini
You can create a more organized resource structure on your local filesystem for development by creating groups in Xcode and changing the path to them (seen here - http://www.quicksnapper.com/wisequark/image/untitled-0039) but when the time arrives to build the application bundle, they'll

One Shot Windows: WARNING

2009-02-07 Thread Seth Willits
I spent two hours trying to figure this out! New window instances in nib files created with Xcode or IB3 have setOneShot:NO in them. The default Document Based Cocoa application project, however, sets oneShot to *YES* in the nib it includes. This means that if you create a new project,

IKImageBrowserView - multiline labels

2009-02-07 Thread Eric Gorr
I was wondering if anyone has used this control. I have a situation which it may be perfect for, but the three things I am not certain it is capable of is: 1. supporting in-place editing of the labels 2. supporting multi-line labels 3. using a smaller font in the labels I have tried to

Re: iphone and images issues

2009-02-07 Thread Emmanuel Pinault
Thanks ! I ll take a look. I am more concerned with number of file in the same nodes (io-node) rather than collision name But I guess I can use the flat structure for now. Just was surprised at first and thought I was doing something wrong. Thanks Emmanuel On Feb 7, 2009, at 5:29 PM, Robert

Re: performSelector:withObject fails with class object

2009-02-07 Thread Michael Ash
On Sat, Feb 7, 2009 at 11:44 AM, Tron Thomas tron.tho...@verizon.net wrote: I thought about trying NSObject after I posted the mailing list. The main reason I went with Object originally was because I just wanted to write something quick and simple. I did not want to worry about linking to

Re: Read lines from very large text file

2009-02-07 Thread Michael Ash
On Sat, Feb 7, 2009 at 12:46 PM, Joar Wingfors j...@joar.com wrote: On Feb 7, 2009, at 6:55 AM, Steve Sisak wrote: Umm, unless I'm totally missing something, what's wrong with fopen() and fgets(), possibly followed with [NSString stringWithCString] on each line? What's wrong is that they

Re: Animated toolbar

2009-02-07 Thread Seth Willits
On Feb 7, 2009, at 2:40 PM, Christian Graus wrote: Fair enough. I guess that brings this discussion to a close, so thanks to everyone who responded. It's been very valuable to me, even if it didn't go in the direction I was hoping. It's certainly convinced me that our toolbar needs to

Re: NSProgressIndicator (spinning) on a dark background?

2009-02-07 Thread Guy Umbright
Well that is pretty damn awesome. I will take a look at it. Thank you. On Feb 7, 2009, at 8:35 AM, Andreas Mayer wrote: Am 07.02.2009 um 14:39 Uhr schrieb Andreas Mayer: But you could modify my AMIndeterminateProgressIndicatorCell class:

Cocoa Event Monitor?

2009-02-07 Thread dave d
Hi all, I'm attempting to write a Cocoa app which listens for key down and key up events from a specified process. I've checked out Apple's Event Monitor example for Carbon: http://developer.apple.com/samplecode/EventMonitorTest/index.html This example has the functionality I want, but I'm

IB v7.03 appears to corrupt an xib last generated by IB v7.02

2009-02-07 Thread Stephen Bannasch
I'm having a problem with Interface Builder seemingly corrupting an xib file just by opening it and closing it. The project is GitX: http://github.com/pieter/gitx The project builds fine in XCode but if I open: ./English.lproj/Preferences.xib in IB and just save it (making no changes)

Re: Animated toolbar

2009-02-07 Thread Rob Keniger
On 08/02/2009, at 1:16 PM, Seth Willits wrote: Fair enough. I guess that brings this discussion to a close, so thanks to everyone who responded. It's been very valuable to me, even if it didn't go in the direction I was hoping. It's certainly convinced me that our toolbar needs to go,

subpixel rendering vs. layer backed views

2009-02-07 Thread m
Is it the case that I can have a layer backed view (and thus nice animations), or I can have labels and checkboxes whose text is nicely subpixel anti-aliased, but not both? I feel like I'm missing something but when I put a check box in a layer backed view, it looks terrible. It's poorly

Re: IB v7.03 appears to corrupt an xib last generated by IB v7.02

2009-02-07 Thread Kyle Sluder
Interface Builder is currently on version 3.1.2 (build 677). I have no idea what version number you're talking about here. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: subpixel rendering vs. layer backed views

2009-02-07 Thread Kyle Sluder
On Sat, Feb 7, 2009 at 10:36 PM, m mlist0...@gmail.com wrote: Is it the case that I can have a layer backed view (and thus nice animations), or I can have labels and checkboxes whose text is nicely subpixel anti-aliased, but not both? This is correct. You can't do subpixel antialiasing if

Re: IKImageBrowserView - multiline labels

2009-02-07 Thread Rob Keniger
On 08/02/2009, at 11:40 AM, Eric Gorr wrote: I was wondering if anyone has used this control. I have a situation which it may be perfect for, but the three things I am not certain it is capable of is: 1. supporting in-place editing of the labels 2. supporting multi-line labels 3. using a

Re: Cocoa Event Monitor?

2009-02-07 Thread Seth Willits
On Feb 6, 2009, at 11:04 PM, dave d wrote: http://developer.apple.com/samplecode/EventMonitorTest/index.html This example has the functionality I want, but I'm wondering if there's a more efficient way to accomplish the same thing in Cocoa. Even if there's a Cocoa alternative that

Re: Cocoa Event Monitor?

2009-02-07 Thread Colin Wheeler
I'd start off with Carbon events. The only other alternative I can think of is the Cocoa/Carbon Events DTrace scripts and possibly linking against DTrace (libdtrace.dylib), but to be honest for what your doing compared with Carbon events that's a lot more trouble than it's worth. Colin Wheeler

name == $FETCH_SOURCE.name -- Doesn't find dupes?

2009-02-07 Thread Jerry Krinock
Thanks, mmalc. That little sheet looked so simple it didn't occur to me that there would be a whole chapter of documentation on it, including what I needed... Control-click ^empty^space^ in the line of the criteria. Now that's what I call a hidden feature! I'm that if I file a bug

Re: Running out of memory when adding CGImageRef-to-NSImage frames to QTMovie in NSOperation subclass

2009-02-07 Thread Ken Ferry
Hi Michael, The information to diagnose your problem is not in this message. Instruments can show you backtraces of where individual objects were allocated, and where they were retained and released. Two things with this line, though. anImage = [[NSImage alloc] initWithData:[bitmapRep

Re: One Shot Windows: WARNING

2009-02-07 Thread Matt Neuburg
On Sat, 7 Feb 2009 17:32:58 -0800, Seth Willits sli...@araelium.com said: BAD! BAD! BAD! BAD! In my case, I have a document window with a table view in it, where data source and delegate are the window controller. If the window is oneShot NO, then the window controller is deallocated, but the

Re: Cocoa Event Monitor?

2009-02-07 Thread Michael Ash
On Sat, Feb 7, 2009 at 2:04 AM, dave d dave_d1...@yahoo.com wrote: Hi all, I'm attempting to write a Cocoa app which listens for key down and key up events from a specified process. I've checked out Apple's Event Monitor example for Carbon:

Re: One Shot Windows: WARNING

2009-02-07 Thread Seth Willits
On Feb 7, 2009, at 8:45 PM, Matt Neuburg wrote: BAD! BAD! BAD! BAD! In my case, I have a document window with a table view in it, where data source and delegate are the window controller. If the window is oneShot NO, then the window controller is deallocated, but the views in the window are

Re: subpixel rendering vs. layer backed views

2009-02-07 Thread Brandon Walkin
There are a couple tricks you can use to retain subpixel antialiasing. If you're giving the view a layer so you can animate it occasionally, try giving it a layer just before you tell it to animate and removing the layer once the animation is complete. For quick alpha or origin changes,

Re: Read lines from very large text file

2009-02-07 Thread Joar Wingfors
On Feb 7, 2009, at 7:13 PM, Michael Ash wrote: What's wrong is that they won't allow you to specify the text encoding to use. The same thing is true for the *deprecated* method +stringWithCString: by the way. That is incorrect. I don't think that what I said is incorrect, at least not