Re: Is there a known bug in NSUrl?

2009-02-18 Thread Sherm Pendley
On Wed, Feb 18, 2009 at 12:00 AM, Robert Nicholson < robert.nichol...@gmail.com> wrote: > So, I often see this same behavior in Safari, iTunes etc whereby when it's > downloading something and you try to resume. It simply will not resume or > will say timeout _until_ you remove the file and start

Re: Trying to open a file

2009-02-18 Thread Ken Thomases
On Feb 18, 2009, at 1:15 AM, Christian Graus wrote: I will look to see what fileURLWithPath returns tho, b/c the string is the same as it was the last time I ran this, but last time it worked ( the code has not changed, so I am mystified ) It may have worked, but it is not a generally corr

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-18 Thread Kyle Sluder
On Wed, Feb 18, 2009 at 1:52 AM, Jeff Johnson wrote: > That's an odd request, because doesn't it make more sense to install to > /Applications if the app is running from /Volumes/MyDMG rather than from > ~/Downloads? :-) Indeed, one of the reasons to switch from dmg to zip > distribution is that t

Re: NSMailDelivery API

2009-02-18 Thread Torsten Curdt
> I think I asked for an alternative to NSMailDelivery here before > and someone recommended EDMessage. I looked into it, but for reasons I can't > remember, it proved unsuitable. What reasons could that be? Maybe because you need the SMTP server? You can extract it from the Mail.app config if ava

Converting .wav files to MP3

2009-02-18 Thread Anshul jain
I am trying to convert the .wav files to MP3. I have tried to google it. I found a framework called LAME. but i don't know to use it. Can anybody help me out. Thanks! Anshul ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Trying to open a file

2009-02-18 Thread Christian Graus
Ah - thanks for the explanation, I bet that's why it worked for me before and not later when the path I selected, changed. The space will be it, this code worked 4 days ago and I've not done any updates. On Wed, Feb 18, 2009 at 8:10 PM, Ken Thomases wrote: > On Feb 18, 2009, at 1:15 AM, Christi

Re: Converting .wav files to MP3

2009-02-18 Thread Mike Abdullah
You almost certainly want QTKit. Read up on it in the documentation. On 18 Feb 2009, at 09:36, Anshul jain wrote: I am trying to convert the .wav files to MP3. I have tried to google it. I found a framework called LAME. but i don't know to use it. Can anybody help me out. Thanks! Anshul

Re: Converting .wav files to MP3

2009-02-18 Thread Anshul jain
Thanks Mike, But i need this for the IPhone. and as far i know IPhone does not support QTKit. Is there any alternative. On 18-Feb-09, at 3:13 PM, Mike Abdullah wrote: You almost certainly want QTKit. Read up on it in the documentation. On 18 Feb 2009, at 09:36, Anshul jain wrote: I am try

Re: Converting .wav files to MP3

2009-02-18 Thread Mike Abdullah
Um, perhaps you should have mentioned this originally? Besides, this list isn't really the best place. For iPhone stuff, head over to the Apple Developer Forums https://devforums.apple.com/login.jspa On 18 Feb 2009, at 09:50, Anshul jain wrote: Thanks Mike, But i need this for the IPhone.

Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Leo Singer
Hi, I have a C++ method that I am invoking from within the - (void) main selector of an NSOperation. My Cocoa application is crashing because this particular C++ method puts a huge amount of data on the stack. I am getting an EXEC_BAD_ACCESS error. However, the same C++ routine works fine if I

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Leo Singer
Actually, if the big array and the loop are moved from the C++ method into the Objective C selector - (void) main then the same EXEC_BAD_ACCESS occurs. So the problem is not related to C++. The following source code still exhibits the same problem: TestOperation.h //

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Leo Singer
OK, so there is a way to change the size of the stack for an NSThread. But how do I do this for an NSOperationQueue? NSThread has the following selector: - (void) setStackSize:(NSInteger)s; I need to find the equivalent selector for NSOperationQueue. Any ideas out there? Leo #import @interf

Re: Converting .wav files to MP3

2009-02-18 Thread Jean-Daniel Dupas
QuickTime (and OS X) does not provide an MP3 encoder (for licensing issue). The only provided Mac OS X MP3 encoder is iTunes. Le 18 févr. 09 à 10:43, Mike Abdullah a écrit : You almost certainly want QTKit. Read up on it in the documentation. On 18 Feb 2009, at 09:36, Anshul jain wrote: I

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Mike Abdullah
Would this work? - (void)main { [[NSThread currentThread] setStackSize:stackSize]; // Do usual work } Actually, with a bit more reading, apparently not. You'd need to set the stack size before starting the thread, not after. In which case your only option is to subclass NSOp

Re: display unicode string one character at a time, not at simple as it seems

2009-02-18 Thread Gerriet M. Denkmann
On 18 Feb 2009, at 14:18, mathew davis wrote: ideally I'd like to break the string in to: the smallest possible segments which do not need to horizontally overlap when displayed in order to make sense to a reader. so the composed character sequence: g̈ U+006

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Michael Vannorsdel
Really it would be best to malloc the space, use it, and free it. Once you get to huge stack usage you gamble that you won't run out when there can be other higher up calls also consuming some (frameworks, libs, 3rd party code, ect). Also if you only use the large amount once in a while t

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-18 Thread Gregory Weston
Ben Lachman wrote: I'm wanting to move away from DMGs to ZIP delivery. As part of this move I'd like to have my app, SousChef, prompt the user on first run to move itself to /Applications (or ~/Applications as appropriate). In a short search I can't find any code examples hanging about to do so

Re: Is there a known bug in NSUrl?

2009-02-18 Thread Robert Nicholson
In the cases where I see this occur I'd say that the time from start to first resume attempt is less than 30 minutes. I do not believe it could be related to session timeouts. Secondly, in my mind it's a bug if the application simply refuses to continue. Often what you see is if it cannot c

Re: display unicode string one character at a time, actually quite simple after all

2009-02-18 Thread mathew davis
Do you have an example where the result of rangeOfComposedCharacterSequenceAtIndex is too wide? um guess I was just plain wrong Thank you Gerriet, I'm actually not sure how I got that so wrong, I've just run my code again and it's doing exactly what I want it to I must have had a bug earlier

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Steve Christensen
Google is your friend. The first search result for "Mac OS X stack size" was , which says: "Each Mac OS X process is launched with a default stack size of 8 Megabytes. This allocation is used exclusively for the main thread's sta

Custom Google Search Engine for Mac OS X Developers

2009-02-18 Thread Marc Liyanage
I set up a Google Custom Search Engine covering Mac OS X development related sites a few weeks ago. Since then I've been testing and using it while working on my OS X programs, and I found it to be helpful in locating relevant information quickly. This article has the details, including a

Re: Is there a known bug in NSUrl?

2009-02-18 Thread Mike Abdullah
I think the only way to get anywhere then is to build yourself a test case and see if it is at all reproducible. In particular, whether the bug lies in NSURLDownload or NSURLConnection (or maybe even WebDownload). On 18 Feb 2009, at 14:15, Robert Nicholson wrote: In the cases where I see t

Object -> NSTreeNode?

2009-02-18 Thread Tomas Franzén
Hi, I'm transitioning my app from using a NSOutlineView data source to NSTreeController. I want to start editing a row programmatically, so I need to call editColumn:row:withEvent:select:, but then I need the row index. I can get that with rowForItem:, but as far as the NSOutlineView is c

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Clark S. Cox III
I would strongly reccommend using std::vector instead of a raw array. That way you're immune from stack size issues. Sent from my iPhone On Feb 18, 2009, at 0:31, Leo Singer wrote: Actually, if the big array and the loop are moved from the C++ method into the Objective C selector - (void) m

iphone landscape problems

2009-02-18 Thread Memo Akten
Hi All, i have two problems regarding running my app in landscape mode: 1. I would like my app to to start in landscape mode. In my root viewcontroller I have: - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation ==

Re: Moving oneself to /Applications (or ~/Applications)

2009-02-18 Thread Jeff Johnson
On Feb 18, 2009, at 3:16 AM, Kyle Sluder wrote: On Wed, Feb 18, 2009 at 1:52 AM, Jeff Johnson wrote: That's an odd request, because doesn't it make more sense to install to /Applications if the app is running from /Volumes/MyDMG rather than from ~/Downloads? :-) Indeed, one of the reasons

Re: iphone landscape problems

2009-02-18 Thread Robert Marini
In my applicationDidFinishLaunching I have: [[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated:NO]; Out of curiosity, what version of iPhone OS are you building for? If you're using 2.1 and later, it should just work. If not, you'll ne

Re: iphone landscape problems

2009-02-18 Thread Memo Akten
Hi Thanks for the response. I was building for 2.2. I am now trying for 2.2.1 and getting the exact same behavior. Regarding the 2nd point, if I use UIActionSheet it works correctly, but UIAlertView does not orient. A bit of info about my setup. - I create window manually in applicationDidF

Getting a Unique File ID from MDItem

2009-02-18 Thread Mike Manzano
Hi all, I'm doing some MDQuery stuff in my application, and it's working to the point where I'm getting the appropriate notifications for additions and removals to the subset of files that satisfy my query. When I get these notifications, there's a list of MDItemRefs in the notification'

Re: sticky video/audio files in NSTextView with GC on

2009-02-18 Thread Markus Guhe
On 17 Feb 2009, at 17:41, Bill Bumgarner wrote: On Feb 17, 2009, at 12:52 AM, Markus Guhe wrote: Follow up: I filed a bug report on this issue, number 6593625. Thank you for the bug and especially for the easily reproducible test case. Very much appreciated. I stole the bug out of the i

Re: Running out of memory on stack in C++ routine invoked within Cocoa NSOperation

2009-02-18 Thread Greg Parker
On Feb 18, 2009, at 3:22 AM, Michael Vannorsdel wrote: Really it would be best to malloc the space, use it, and free it. Once you get to huge stack usage you gamble that you won't run out when there can be other higher up calls also consuming some (frameworks, libs, 3rd party code, ect). A

Re: How to force a message to a overriding method from within an init method

2009-02-18 Thread Andreas Grosam
On Feb 12, 2009, at 2:31 AM, João Varela wrote: João, Hi all I am porting most of my C++ code into Objective C and at the moment I have this problem: In C++ to force a constructor to call a overriding method of a subclass I used pure virtual functions defined in an abstract (super) cl

Memory Leak, part I

2009-02-18 Thread John Love
[this is part I of a two-part plea for help] I I have read Apple's "ManagingMemory.pdf" and am still having difficulty understanding the use of MallocDebug which is detailed in "MemoryMgmt.pdf". I have 5 methods in the generation of a background thread and I cannot figure out where the mem

Large layers in Core Animation

2009-02-18 Thread bno20
Hello I'm writing an application that requires a large scrollable view (about 500 x 8000) to display an appointments diary with lots of entries. I had a satisfactory version working using traditional cocoa objects but performance was a bit sluggish so I'd like to get it working using Core

Windows vs View

2009-02-18 Thread Weydson Lima
Hi there, This is my first message here and I am already starting with a very newbie question. I have a broad understanding what a view is - a button, a label, etc... are views, right? But when I look at some sample codes from Apple, the application doesn't have a "main" window.. instead, it has

Re: Adding Multiple NSWindow or NSPanel into another NSWindow

2009-02-18 Thread Shawn Erickson
On Tue, Feb 17, 2009 at 9:41 PM, Ankur Singhal wrote: > I need to add a window inside another window so that I can drag them to any > portion of my window and also to drag them out of my parent window. Lets ignore the use of the word window in the above Can you better describe what you are t

Re: Windows vs View

2009-02-18 Thread Luke the Hiesterman
I'm guessing you're talking about iPhone sample code here. The answer to your question depends, somewhat, on whether you're talking about OS X programming, or iPhone programming. Please clarify. Luke On Feb 18, 2009, at 1:35 PM, Weydson Lima wrote: Hi there, This is my first message here

Memory Leak, part II

2009-02-18 Thread John Love
[part II of my plea for help] (3) - (void) doCalculation { for (row=1; row <= 1; row++) { // many rows, therefore much time if ([self shouldExit]) break; [self doCalculationForEachRow]; } } (4) - (BOOL) shouldExit { [self pingWorkbook];

Re: CALayer defaultValueForKey

2009-02-18 Thread Gordon Apple
I guess that should have been obvious that a "value" object would be returned a la dictionaries. The "discussion" part actually confused rather than enlightened me. Although the properties individually state the defaults, I still haven't found the addendum chapter you mentioned and I just

Re: CALayer defaultValueForKey

2009-02-18 Thread Scott Anguish
On 18-Feb-09, at 6:28 PM, Gordon Apple wrote: I guess that should have been obvious that a "value" object would be returned a la dictionaries. The "discussion" part actually confused rather than enlightened me. Although the properties individually state the defaults, I still haven

Re: iphone landscape problems

2009-02-18 Thread Memo Akten
I've identified the problem for the first scenario (view appearing portrait then rotating). I have a function [MyViewController show] and [MyViewController hide] which transition the view in and out: [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:ANIMATION_TIME]; [UI

Memory Leak, Part I

2009-02-18 Thread John Love
[part II of my plea for help] (3) - (void) doCalculation { for (row=1; row <= 1; row++) { // many rows, therefore much time if ([self shouldExit]) break; // do calculation for each row } } (4) - (BOOL) shouldExit { [self pingWorkbook]; /

Re: Large layers in Core Animation

2009-02-18 Thread Sean McBride
On 2/18/09 11:40 AM, bn...@mac.com said: >I'm writing an application that requires a large scrollable view >(about 500 x 8000) to display an appointments diary with lots of >entries. I had a satisfactory version working using traditional cocoa >objects but performance was a bit sluggish so I'd lik

Re: Drop Down Toolbar Button

2009-02-18 Thread Graham Cox
On 19 Feb 2009, at 11:45 am, Walker Argendeli wrote: 'm just having a bit of trouble getting this to work. First off, I wasn't 100% certain about which should be buttonCell and which should be self, although I think I got all of that right. how does startTrackingAt:startPoint:inView: get

Re: Object -> NSTreeNode?

2009-02-18 Thread Charles Srstka
On Feb 18, 2009, at 10:59 AM, Tomas Franzén wrote: Hi, I'm transitioning my app from using a NSOutlineView data source to NSTreeController. I want to start editing a row programmatically, so I need to call editColumn:row:withEvent:select:, but then I need the row index. I can get that wit

Re: Large layers in Core Animation

2009-02-18 Thread David Duncan
On Feb 18, 2009, at 4:19 PM, Sean McBride wrote: See: "Layer Size Limits and Tiled Layers" -> "On most current graphics hardware the effective limit is 2046x2046 pixels" This is mostly true. Layers with content are certainly limite

FOLDERS and document based apps (Open Recent)

2009-02-18 Thread Chris Idou
If I add public.folder to my Info.plist as a valid type of document my app can open, some things don't work. Open Document doesn't work, albeit its not too hard to get around by subclassing NSDocumentController and redefining the openDocument: However Open Recent is more tricky because as far

RE: Adding Multiple NSWindow or NSPanel into another NSWindow

2009-02-18 Thread Ankur Singhal
Actually I want to allow the user to fit a view at any place in the window he wants by dragging the view. Also allowing him to hide it if required or close it. Thanks & Regards, Ankur Singhal -Original Message- From: Shawn Erickson [mailto:shaw...@gmail.com] Sent: Thursday, February 19,

Re: Adding Multiple NSWindow or NSPanel into another NSWindow

2009-02-18 Thread Chris Idou
You can have an MDI interface on the Mac, but you have to do all the hard work yourself, because there is no MDI widgets provided. One alternative is a tabbed interface. There is some free code somewhere that does a Safari-like tabbed interface. Make Yahoo!7 your homepage and win a tri

Re: Capture highlighted menu name

2009-02-18 Thread Cauvery K
Hi There, [...] I'm going to ignore the approach you mentioned because it sounds incredibly painful for what could very well turn out to be a very simple thing. The problem is that it's hard to tell exactly what you're trying to do because you didn't explain your goals very well. We are deve