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 modera

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 ma

Re: Tracing an iPhone application/framework

2010-10-19 Thread Jonathan del Strother
On 19 October 2010 04:38, Sandro Noël 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 architecture. > > I

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

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 dea

Re: Turning text tokens into single elements

2010-05-19 Thread Jonathan del Strother
On 19 May 2010 13:02, Gideon King 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 > capsule thing that i

Re: [iPhone] How to create a unique string

2010-05-13 Thread Jonathan del Strother
On 13 May 2010 14:00, John Pannell wrote: > Hi Tharindu- > > In the past, I have used a UUID for this purpose.  You could add the > following method to a category on NSString to make it quite easy: > > + (NSString*) stringWithNewUUID > { >    CFUUIDRef uuidObj = CFUUIDCreate(nil); >    NSString *

Re: App won't launch in Debug but release product is fine

2010-05-11 Thread Jonathan del Strother
On 11 May 2010 10:39, Steve Cronin wrote: > Folks; > > I need to pare back a project, remove some of the cruft. > > I copied the entire project directory and renamed the project and bundle > identifier for now. > I've removed various IB widgets as well as objC classes. > > I can now build without

Re: Detecting if you're being debugged

2010-03-18 Thread Jonathan del Strother
On 18 March 2010 18:03, Kyle Sluder wrote: > On Thu, Mar 18, 2010 at 4:48 AM, Peter Hudson 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 do: asks the kernel if the > P_TRACED

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

2010-01-11 Thread Jonathan del Strother
2010/1/11 Gerriet M. Denkmann : > 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  0x97fe1303 in

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 : > i have been researching how to do this, and while i believe my code is > correct, i always receive the alert stating 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 : > > > I ask this here as I have seen questions on Crash Reports. > > This is is Universal Binary ... why is there any PPC invo

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

2009-11-03 Thread Jonathan del Strother
h the nib. > > Luke > > On Nov 3, 2009, at 5:27 AM, Jonathan del Strother wrote: > >> 2009/11/3 Jonathan del Strother : >>> >>> Heya, >>> >>> I'd like to get hold of the top level objects returned by -[NSBundle >>> loadNibNamed:ow

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

2009-11-03 Thread Jonathan del Strother
2009/11/3 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 tho

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: "Format not a string literal and no format arguments"

2009-08-29 Thread Jonathan del Strother
cey Morris 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 form

"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 t

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

2009-08-29 Thread Jonathan del Strother
2009/8/29 James : > 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 unfortunatel

Re: Xcode Analyze memory misunderstanding

2009-08-27 Thread Jonathan del Strother
On Thu, Aug 27, 2009 at 11:29 AM, Reza Farhad 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 exp

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. Crawford 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 dictionary, fill it with

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 Strother 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 'Handl

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 t

Re: memory allocation different in simulator and on the iPhone

2009-07-24 Thread Jonathan del Strother
good 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 > wrote: >> >> UIImage* image = [UIImage imageNamed:fileName]; >> UIImageView *imageView = [

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: Recording phone calls

2009-07-22 Thread Jonathan del Strother
pplication, will apple store approve this? > > On 7/22/09 3:06 PM, "Jonathan del Strother" wrote: > >> 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 whate

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 King wrote: > No. Not using published APIs in 2.2 (or 3.0). No access to

Re: XCode and Safari Block Issues?

2009-06-15 Thread Jonathan del Strother
On Mon, Jun 15, 2009 at 12:57 PM, Chunk 1978 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 works fine. > M

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 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 know that,

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 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 it, but like I said,

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

Re: Programmatically constructing list of variable arguments?

2008-12-12 Thread Jonathan del Strother
On Fri, Dec 12, 2008 at 2:54 PM, 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: &

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 wrote: > On Fri, Dec 12, 2008 at 9:12 AM, Kyle Sluder > 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 to be >>> able

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 programm

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, Alex

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 handlin

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 moderator

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, et

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

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 NS

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(

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

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 repr

Re: Weird Error

2008-09-19 Thread Jonathan del Strother
On Fri, Sep 19, 2008 at 4:18 PM, development2 <[EMAIL PROTECTED]> wrote: > Ok I hope someone can help me. I need to get this working. > > Here is what I am doing. I have a class called Object, it is set up like > this: > > -- Object.h > > @interface Object : NSObject > { > >NSNu

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, I"ve 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 >

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 *myData

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

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

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

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 str

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

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

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 spendi

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

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

Re: NSArray

2008-06-01 Thread Jonathan del Strother
On Mon, Jun 2, 2008 at 1:02 AM, Nathan <[EMAIL PROTECTED]> wrote: > here's my code: > > int x; > - (IBAction)addNew:(id)sender { >NSString *temp = @"Enter Todo Item Here"; >[Items addObject: temp]; >x=[Items count]; >[label setIntValue: x]; >[tableView setDataSou

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

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

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

2008-05-19 Thread Jonathan del Strother
On Mon, May 19, 2008 at 11:27 AM, <[EMAIL PROTECTED]> wrote: > Hi, > I want to convert string to its corresponding values.I found a method in > NSAttributedString initWithHtml,i think it will convert HTML to > attributed string.I found 3 attributes > NSString *NSExcludedElementsDocumentAttribute

CALayer backgroundFilters can't cope with animated backgrounds?

2008-05-02 Thread Jonathan del Strother
Hi, I have a CALayer covering my view, with a blur background filter. Works fine for static cases - everything behind the blur layer is blurred. However, for layers that update themselves continuously - eg QTMovieLayer or QCCompositionLayer - or even just plain layers that move, I get ugly trails a

Re: How is this possible?

2008-04-20 Thread Jonathan del Strother
On Sun, Apr 20, 2008 at 4:25 PM, Don Arnel <[EMAIL PROTECTED]> wrote: > I have two different class objects that need to know about each other (see > below). But if I include the header from one class inside the header of the > other class the compiler complains. Is this even possible? > > ClassOne

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.

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 an

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 s

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

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

Re: -[CALayer setContents: cvPixelBufferRef ] ?

2008-04-03 Thread Jonathan del Strother
On Thu, Apr 3, 2008 at 8:23 PM, David Duncan <[EMAIL PROTECTED]> wrote: > On Apr 3, 2008, at 11:34 AM, Jonathan del Strother wrote: > > > > CALayer says that 'contents' is "typically a CGImageRef, but may be > > something else". I (optimistically) tr

-[CALayer setContents: cvPixelBufferRef ] ?

2008-04-03 Thread Jonathan del Strother
I have a CVPixelBufferRef, with a 2vuy pixel format. I'd like to display it in a CALayer. CALayer says that 'contents' is "typically a CGImageRef, but may be something else". I (optimistically) tried assigning the CVPixelBufferRef directly to the contents, but apparently that's not included in t

Re: method declaration error

2008-03-27 Thread Jonathan del Strother
On Thu, Mar 27, 2008 at 12:21 PM, Nick Rogers <[EMAIL PROTECTED]> wrote: > i'm declaring the following method: > > - (BOOL)searchNodeTarget:(const ItemType)target > location:(int &)location; > > with error: "parse error before '&' token". > > can we not use (int &) this way? Re

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 cause

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 be