iTunes 10.4 plugin API

2011-07-21 Thread Jonathan del Strother
Hi, I've been struggling to find any information on writing visualizers for iTunes 10.4. Is there a modern equivalent of the venerable TN2016? -Jonathan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

CoreData not noticing changes to transformable properties

2010-12-03 Thread Jonathan del Strother
Hi, I have an NSManagedObject with a transformable property arrayOfWidgets, which is an NSArray of Widget instances, which implement encodeWithCoder: If I treat the Widget class as immutable, it all works fine : I assign an NSArray of initialized widgets to arrayOfWidgets, and call save on the

Re: Tracing an iPhone application/framework

2010-10-19 Thread Jonathan del Strother
On 19 October 2010 04:38, Sandro Noël apple.li...@gestosoft.com wrote: Greetings. The lead developer at my workplace left his brainchild behind but forgot to write any documentation for it. the framework is now quite unusable because it is quite extensive an no one knows the depth of it's

Exceptions to the don't use -[NSManagedObject dealloc] rule?

2010-09-30 Thread Jonathan del Strother
Hi, I'm in the process of converting an existing iPhone app to use Core Data for its backend storage. I've got a model that manages an upload of its own attributes to a server - it has a retained NSURLConnection instance variable. Traditionally, I'd just release the connection in the model's

Re: Exceptions to the don't use -[NSManagedObject dealloc] rule?

2010-09-30 Thread Jonathan del Strother
don't have to worry about the managed object disappearing from underneath you.  Then you can simply clean up the connection in the connection:didFailWithError: or connectionDidFinish: delegate methods. Dave On Sep 30, 2010, at 7:41 AM, Jonathan del Strother wrote: if my model refaults

Re: Turning text tokens into single elements

2010-05-19 Thread Jonathan del Strother
On 19 May 2010 13:02, Gideon King gid...@novamind.com wrote: I'm looking for some sample code that shows how to take a token in a text view and represent it as a single graphical item - just like what xcode does when it does method completion, and it puts the arguments in a single blue

Re: Detecting if you're being debugged

2010-03-18 Thread Jonathan del Strother
On 18 March 2010 18:03, Kyle Sluder kyle.slu...@gmail.com wrote: On Thu, Mar 18, 2010 at 4:48 AM, Peter Hudson peter.hud...@mac.com wrote: Does this code report on my app being debugged by any third party, even when the app has been stripped of symbols ? It does precisely what it claims to

Re: pointer being freed was not allocated when rotating an iPhone

2010-01-11 Thread Jonathan del Strother
2010/1/11 Gerriet M. Denkmann gerr...@mdenkmann.de: When I rotate my iPhone in the Simulator, I get: ... malloc: *** error for object 0x1091000: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug (gdb) bt #0  0x980d2072 in malloc_error_break () #1  

Re: iPhone Testing Internet Connection?

2009-12-15 Thread Jonathan del Strother
Perhaps you should be calling the internetConnection function, rather than comparing its address to 0x001 ? if (internetConnection() == YES) 2009/12/15 Chunk 1978 chunk1...@gmail.com: i have been researching how to do this, and while i believe my code is correct, i always receive the

Re: Wierd Crash Report

2009-12-14 Thread Jonathan del Strother
That looks an awful lot like it's running via rosetta. Perhaps the user has done Get Info on your app and ticked the 'Open using Rosetta' box? 2009/12/14 David Blanton aired...@tularosa.net: I ask this here as I have seen questions on Crash Reports. This is is Universal Binary ... why is

Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
Heya, I'd like to get hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide any way of accessing these, so I thought I might be able to just load the nib myself : -(void)loadView {

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
2009/11/3 Jonathan del Strother maill...@steelskies.com: Heya, I'd like to get hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide any way of accessing these, so I thought I

Re: Overriding -[UIViewController loadView], and loading from a nib

2009-11-03 Thread Jonathan del Strother
, 2009, at 5:27 AM, Jonathan del Strother wrote: 2009/11/3 Jonathan del Strother maill...@steelskies.com: Heya, I'd like to get hold of the top level objects returned by -[NSBundle loadNibNamed:owner:options:] when UIViewController loads my view. Sadly UIViewController doesn't seem to provide

Re: How to extract the Artist information of an song file?

2009-08-29 Thread Jonathan del Strother
2009/8/29 James ldl0313...@163.com: Hi all, How to extract the Artist information from an song file? Is there any method about it ? Any clues is helpful for me. Thank you in advance! If it's an AAC file, you can use the QTMetaData* functions. If you're looking to get it out of an mp3, you're

Format not a string literal and no format arguments

2009-08-29 Thread Jonathan del Strother
After upgrading to snow leopard Xcode 3.2, I've starting getting this warning on NSLogs - NSLog(@Hello); // 'Format not a string literal and no format arguments' NSLog(@Hello %@, name); // compiles fine I must have some weird project setting somewhere since a new test project didn't throw

Re: Format not a string literal and no format arguments

2009-08-29 Thread Jonathan del Strother
Morrisquinceymor...@earthlink.net wrote: On Aug 29, 2009, at 05:36, Jonathan del Strother wrote: After upgrading to snow leopard Xcode 3.2, I've starting getting this warning on NSLogs - NSLog(@Hello);  //   'Format not a string literal and no format arguments' NSLog(@Hello %@, name);   // compiles

Re: Xcode Analyze memory misunderstanding

2009-08-27 Thread Jonathan del Strother
On Thu, Aug 27, 2009 at 11:29 AM, Reza Farhadr...@qu-s.eu wrote: Dear all I am running my code through xcode Build and Analyze to check for bugs. I have the function below which gives me the following error: Object with +0 retain counts returned to caller where a +1 (owning) retain count is

Re: Why would +[initialize] be called twice?

2009-08-24 Thread Jonathan del Strother
On Mon, Aug 24, 2009 at 6:19 PM, Michael A. Crawfordmichaelacrawf...@me.com wrote: Why would the class initializer be called more than once when my app starts up? Is this expected behavior?  In case you're wondering, it is called twice. + (void)initialize {    // Create the defaults

Re: NSArrayController - compound values vs Select Inserted Objects

2009-08-17 Thread Jonathan del Strother
On Thu, Aug 13, 2009 at 12:11 PM, Jonathan del Strothermaill...@steelskies.com wrote: Heya, I'm struggling a bit with an NSArrayController with content bound to NSUserDefaultsController. The NSArrayController manages dictionaries, and so it appears that I need to select 'Handles Content as

NSArrayController - compound values vs Select Inserted Objects

2009-08-13 Thread Jonathan del Strother
Heya, I'm struggling a bit with an NSArrayController with content bound to NSUserDefaultsController. The NSArrayController manages dictionaries, and so it appears that I need to select 'Handles Content as Compound Value'. Without this, changes made to the array through an NSTableView don't seem

Re: memory allocation different in simulator and on the iPhone

2009-07-24 Thread Jonathan del Strother
UIImage* image = [UIImage imageNamed:fileName]; UIImageView *imageView = [[UIImageView alloc] initWithImage:image]; [image release]; You're overreleasing the image there. You sure the phone is dying because it's out of memory, rather than because of that? On Fri, Jul 24, 2009 at 3:07 AM, Dragos

Re: memory allocation different in simulator and on the iPhone

2009-07-24 Thread Jonathan del Strother
thing is it did not crash anymore after 200-300 images displayed. Thanks a lot, Dragos On Fri, Jul 24, 2009 at 3:14 AM, Jonathan del Strother maill...@steelskies.com wrote: UIImage* image = [UIImage imageNamed:fileName]; UIImageView *imageView = [[UIImageView alloc] initWithImage:image

Re: Recording phone calls

2009-07-22 Thread Jonathan del Strother
Well, technically I suppose the user could start a phone call, then hit the home button launch your recording app, then you could start recording whatever the microphone picks up... On Wed, Jul 22, 2009 at 10:26 AM, Roland Kingr...@rols.org wrote: No. Not using published APIs in 2.2 (or 3.0).

Re: XCode and Safari Block Issues?

2009-06-15 Thread Jonathan del Strother
On Mon, Jun 15, 2009 at 12:57 PM, Chunk 1978chunk1...@gmail.com wrote: i installed Safari Block for Safai 4.  Safari Block, for those who do not already know, blocks flash banner ads on internet sites.  to install, users simply drag Safari Block folder into /Libary/InputManagers.  Safai Block

Re: Sensible way to extend base class?

2009-05-20 Thread Jonathan del Strother
On Wed, May 20, 2009 at 1:35 PM, Graham Cox graham@bigpond.com wrote: On 20/05/2009, at 10:24 PM, Jerry Krinock wrote: I believe a short version of your question is: How can I get multiple inheritance?  The short answer is that Objective-C does not support multiple inheritance. Yep. I

Re: -[NSURLConnection cancel] doesn't release its delegate?

2008-12-19 Thread Jonathan del Strother
On Thu, Dec 18, 2008 at 6:43 PM, Stephen J. Butler stephen.but...@gmail.com wrote: Actually, this works for me on 10.5.6, with XCode 3.1.1. The assert doesn't trigger. ... Or it could be a bug that was fixed in the latest release.Try putting a run loop in your main function instead. I'd try

-[NSURLConnection cancel] doesn't release its delegate?

2008-12-18 Thread Jonathan del Strother
Heya, I ran into a memory leak recently that I finally managed to track down to NSURLConnection retaining its delegate. It appears that cancelling an NSURLConnection won't actually release its delegate until the next time around the run loop. Normally this is fine, but I was running on a

Programmatically constructing list of variable arguments?

2008-12-12 Thread Jonathan del Strother
I'm calling a method that takes a nil-terminated variable list of arguments. It doesn't supply a va_arg alternative (like NSLogv, -[NSString initWithFormat:arguments:] etc). The number of arguments isn't known at compile-time. I'd like to be able to take an NSArray of the arguments, and

Re: Programmatically constructing list of variable arguments?

2008-12-12 Thread Jonathan del Strother
On Fri, Dec 12, 2008 at 2:14 PM, Kyle Sluder kyle.sluder+cocoa-...@gmail.com wrote: On Fri, Dec 12, 2008 at 9:12 AM, Kyle Sluder kyle.sluder+cocoa-...@gmail.com wrote: On Fri, Dec 12, 2008 at 8:53 AM, Jonathan del Strother The number of arguments isn't known at compile-time. I'd like

Re: Programmatically constructing list of variable arguments?

2008-12-12 Thread Jonathan del Strother
On Fri, Dec 12, 2008 at 2:54 PM, matt.go...@agfa.com wrote: On 12 Dec 2008, at 15:41, Jonathan del Strother wrote: Which works fine, but rapidly expands into a huge if-statement as you try and handle more states. Ideally I'd like to do something along the lines of: NSMutableArray

Re: Get MD5 without crashing

2008-11-04 Thread Jonathan del Strother
Please just refer people to http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html when memory management comes up. And in Gecko's case, 'crypto' certainly does need to be released, since it's being alloc-inited. On Tue, Nov 4, 2008 at 1:48 PM,

Re: Path handling routines

2008-10-29 Thread Jonathan del Strother
NSString has most of them. See -[NSString pathComponents], -[NSString stringByAppendingPathComponent:] etc. On Wed, Oct 29, 2008 at 1:01 PM, Daniel Luis dos Santos [EMAIL PROTECTED] wrote: Hello, Are there in the Foundation framework (or anywhere else on the Cocoa platform) path handling

Re: how to run single instance?

2008-10-27 Thread Jonathan del Strother
On Tue, Oct 28, 2008 at 4:54 PM, han [EMAIL PROTECTED] wrote: how to run single instance? Double click ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: NSMutableDictionary won't accept my NSString as Value (NEWBIE)

2008-10-23 Thread Jonathan del Strother
On Thu, Oct 23, 2008 at 12:34 PM, Sebastian Pape [EMAIL PROTECTED] wrote: But my NSMutableDictionary won't accept my NSString, because it requires setValue:(id)value and I just have my NSString. 'id' is just a generic type - anything that accepts id will accept NSString, NSObject, NSData, etc.

Re: [Obj-C Compiler Bug?] Two different classes declaring a message with the same name - compiler warning

2008-10-15 Thread Jonathan del Strother
On Wed, Oct 15, 2008 at 11:36 AM, Chris Suter [EMAIL PROTECTED] wrote: On Wed, Oct 15, 2008 at 9:03 PM, John Engelhart [EMAIL PROTECTED] wrote: On Oct 14, 2008, at 7:11 AM, Chris Suter wrote: You can't override the type for existing methods. For example, initWithString: always returns an

Re: EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification

2008-10-14 Thread Jonathan del Strother
On Tue, Oct 14, 2008 at 3:38 PM, John Zorko [EMAIL PROTECTED] wrote: Hello, all ... I'm experiencing a crash after a thread exits. Program received signal: EXC_BAD_ACCESS. (gdb) bt #0 0x300c8c18 in objc_msgSend () #1 0x3067073a in NSPopAutoreleasePool () #2 0x306770ea in

Re: Problems with loose ViewController coupling and KVO to-many relationships

2008-10-07 Thread Jonathan del Strother
On Tue, Sep 30, 2008 at 8:19 PM, Jonathan del Strother [EMAIL PROTECTED] wrote: Heya I'm struggling a bit with NSViewControllers. My app displays a list of widgets. I have a Widget model, a WidgetView view (an NSView subclass), and a WidgetViewController (an NSViewController subclass). All

Re: Clueless about this warning

2008-10-04 Thread Jonathan del Strother
On Sat, Oct 4, 2008 at 3:43 PM, Andre Masse [EMAIL PROTECTED] wrote: Hi, Can someone explain to me why I get this compiler warning (BigLetterView is a subclass of NSView): 'BigLetterView' may not respond to '-prepareAttributes' - (id)initWithFrame:(NSRect)rect { if(![super

Re: Newbie: Simple display with NSView - problem

2008-10-01 Thread Jonathan del Strother
On Thu, Oct 2, 2008 at 12:42 AM, Graham Cox [EMAIL PROTECTED] wrote: On 2 Oct 2008, at 5:02 am, Genu Mathew wrote: On debugging, I found that when I run the command [NewWindow showWindow:self] in the APPController class, the constructor of 'OUSubImageView is called twice Sounds like you

Problems with loose ViewController coupling and KVO to-many relationships

2008-09-30 Thread Jonathan del Strother
Heya I'm struggling a bit with NSViewControllers. My app displays a list of widgets. I have a Widget model, a WidgetView view (an NSView subclass), and a WidgetViewController (an NSViewController subclass). All of those have a one-to-one mapping - for any given WidgetViewController, it has a

Re: confused about allocating and releasing objects

2008-08-27 Thread Jonathan del Strother
On Wed, Aug 27, 2008 at 11:45 AM, Memo Akten [EMAIL PROTECTED] wrote: HI All, i'm a bit confused about the 2 scenarios: NSDictionary *myData1 = [NSDictionary dictionaryWithContentsOfFile:@mydata.plist]; // this one I don't need to release when I'm done? NSDictionary *myData2 =

Re: confused about allocating and releasing objects

2008-08-27 Thread Jonathan del Strother
On Wed, Aug 27, 2008 at 12:13 PM, Memo Akten [EMAIL PROTECTED] wrote: ok thanks, Ive added that link to my ever growing Cocoa bookmarks!! I'm just writing a Quartz Composer plugin using the QCPlugIn API and ran into a problem regarding this, my question isn't related to the QCPlugIn API so I'm

Re: Object change to NSView update

2008-08-22 Thread Jonathan del Strother
On Fri, Aug 22, 2008 at 3:58 PM, Paul Bruneau [EMAIL PROTECTED] wrote: I feel I can nearly grasp what I need to do, but not quite. I know what I shouldn't be doing--which is what I am doing and I feel I'm a little in the weeds. I seek a nudge in the right direction if someone can help. I have

Re: Parse form values from HTTP POST

2008-08-21 Thread Jonathan del Strother
On Thu, Aug 21, 2008 at 9:17 AM, Thomas Engelmeier [EMAIL PROTECTED] wrote: Am 20.08.2008 um 22:54 schrieb Jesse Grosjean: Does anyone know what the best way to parse form values from and HTTP Post is? I have a mini HTTP server in my app, and it needs to accept posts. I'm using CFHTTP to

Re: Question about respondsToSelector

2008-08-19 Thread Jonathan del Strother
On Tue, Aug 19, 2008 at 2:33 PM, Carmen Cerino Jr. [EMAIL PROTECTED] wrote: Sorry about the sketchy details. Basically I have a wrapper class for the Sequence Grabber, and I want to setup a delegate for the decompression callback. This is where I use the respondsToSelector method: static

Re: Setting conditional breakpoint on Cocoa method?

2008-07-28 Thread Jonathan del Strother
On Mon, Jul 28, 2008 at 8:02 AM, Graham Cox [EMAIL PROTECTED] wrote: Once in a blue moon, I get a console message that a nil string was passed to [NSConcreteAttributedString initWithString:] I'd like to find out where this is coming from by setting a breakpoint there, but only for a nil string.

Re: Releasing objects causes BAD_ACCESS

2008-07-07 Thread Jonathan del Strother
On Mon, Jul 7, 2008 at 10:38 PM, Meik Schuetz [EMAIL PROTECTED] wrote: Dear all, according to the document http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html the connection object as well as the receivedData object are released in the

Re: #import importing twice?

2008-06-19 Thread Jonathan del Strother
On Thu, Jun 19, 2008 at 9:36 AM, Martin Häcker [EMAIL PROTECTED] wrote: Hi guys, I was today stung by a problem that I couldn't quite understand. I was importing a header file with #import and the compiler complained about a duplicate interface declaration of the class defined in the header

Re: Requesting Administrator Name and Password

2008-06-16 Thread Jonathan del Strother
On Mon, Jun 16, 2008 at 11:35 AM, Glover,David [EMAIL PROTECTED] wrote: Hi all, I've created a little app that removes some files from within /Applications. This works fine when logged in as an Administrator, but won't run when logged in as a standard user. I've been spending some time

Re: warning: return makes pointer from integer without cast

2008-06-10 Thread Jonathan del Strother
On Tue, Jun 10, 2008 at 1:32 PM, Steven Hamilton [EMAIL PROTECTED] wrote: Hi folks, newbie here. A quickie query on a warning. Both returns in the following code give a 'warning: return makes pointer from integer without cast' - (id)outlineView:(NSOutlineView *)outlineView

Re: TDD/BDD testing methodologies?

2008-06-09 Thread Jonathan del Strother
On Mon, Jun 9, 2008 at 2:34 PM, David Troy [EMAIL PROTECTED] wrote: Hi there, I am new to Cocoa and XCode and have spent the most recent part of my 20+ years of programming using Ruby rather extensively. Part of the kool-aid in Ruby land is test-driven and behavior driven development

Re: Leak when animating Core Animation Superlayer

2008-06-01 Thread Jonathan del Strother
On 6/1/08, Stéphane Droux [EMAIL PROTECTED] wrote: On Sun, Jun 1, 2008 at 1:40 PM, Brian Christensen [EMAIL PROTECTED] wrote: Even with this new code I'm still not observing any leaking. Are you using garbage collection? With GC enabled you will observe fluctuations until the collector gets

Re: KVO: I get called on change, but then can't get the object

2008-05-31 Thread Jonathan del Strother
On Sat, May 31, 2008 at 10:03 AM, Hamish Allan [EMAIL PROTECTED] wrote: On Sat, May 31, 2008 at 8:48 AM, Rick Mann [EMAIL PROTECTED] wrote: On May 31, 2008, at 00:32:30, j o a r wrote: Search for NSKeyValueObservingOptionNew here: Already using that: Read it again: The change dictionary

Re: Cover Flow in Cocoa?

2008-05-23 Thread Jonathan del Strother
On Fri, May 23, 2008 at 10:33 PM, Wayne Shao [EMAIL PROTECTED] wrote: I am thinking to use Cover Flow in cocoa app. - Is this a good idea for a desktop/laptop app? - What APIs are available? CoverFlow outside of iTunes? Terrible idea, it'll never take off.

Re: max # of file handles

2008-04-19 Thread Jonathan del Strother
On Fri, Apr 18, 2008 at 9:00 PM, Wesley Smith [EMAIL PROTECTED] wrote: I'm trying to debug a Cocoa app that occasionally exceeds the max allowable number of file handles open and I'm wondering if there's a way to query how many are actually open. I haven't found anything in the docs. Does

Re: Weird build error

2008-04-17 Thread Jonathan del Strother
On Thu, Apr 17, 2008 at 11:47 PM, Don Arnel [EMAIL PROTECTED] wrote: I've been working on a project for a few weeks now and suddenly today I get this error while building (see below). I was getting this same error in one of my real classes so after commenting out almost every bit of code and

Re: Memory leak when re-alloc Methods

2008-04-16 Thread Jonathan del Strother
On Wed, Apr 16, 2008 at 1:17 AM, Mario Gajardo Tassara [EMAIL PROTECTED] wrote: El 15-04-2008, a las 14:21, [EMAIL PROTECTED] escribió: I have a nasty leak problem when i realloc several methods of the main class of my app. Without seeing your code, all I can suggest is making

Re: Why should we set ivars to nil in dealloc?

2008-04-13 Thread Jonathan del Strother
On Sun, Apr 13, 2008 at 6:48 PM, Ferhat Ayaz [EMAIL PROTECTED] wrote: I see in some Apple's Cocoa examples that ivars are set to nil in the dealloc method. The auto generated Core Data AppDelegate for new projects is doing this for each ivar. Here is a simple example: - (void)dealloc {

Re: How to get a notification which tells a folder name got changed

2008-04-09 Thread Jonathan del Strother
On Wed, Apr 9, 2008 at 11:13 AM, norio [EMAIL PROTECTED] wrote: Hi, My app wants to know whether the name or the location of a folder got changed. Is there any notifications to tell those changes? You might try the FSEvents api ___ Cocoa-dev

Re: -[CALayer setContents: cvPixelBufferRef ] ?

2008-04-03 Thread Jonathan del Strother
On Thu, Apr 3, 2008 at 8:38 PM, David Duncan [EMAIL PROTECTED] wrote: On Apr 3, 2008, at 12:28 PM, Jonathan del Strother wrote: If you have a CVPixelBufferRef, you can use the various functions defined for a CVPixelBuffer to access the base address, row bytes, width, height

Re: Intercepting retain/release of object

2008-03-19 Thread Jonathan del Strother
On Wed, Mar 19, 2008 at 5:54 PM, Stuart Malin [EMAIL PROTECTED] wrote: I am having some trouble in an app with an object and its retain counts, so I added methods to intercept -retain and -release on my affected object so I could set breakpoints to observe the value. But doing so causes

Re: xibs working OK?

2008-02-22 Thread Jonathan del Strother
On Fri, Feb 22, 2008 at 12:27 AM, Chris Ryland [EMAIL PROTECTED] wrote: Other than sporadic mentions of problems hither and thither, I don't see anyone complaining about using .xib (vs .nib) format much. Does that mean they're safe to use? Any other experiences? I've found they're better