Re: How do I guarantee that an object is dealloced on the main thread?

2008-10-06 Thread Julien Jalon
IAs a side note, you always can remove statements like:[NSObject cancelPreviousPerformRequestWithTarget:self ...]; in -dealloc as they are always useless (delayed performs retain the target so if your object is dealloc'ed, there are no outstanding performs for this object). Also, if some object p

Cocoa and C99

2008-10-06 Thread Gerriet M. Denkmann
In the old days I wrote: int i; float f; for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . Now I am trying to use the C99 style: for( int i = 0, float f = 0.0; i < 5; i++, f+= 3.5 ) . But I am told: "parse error before 'float'". Then I tried: float f; for( int i = 0, f = 0.0; i < 3; i++, f

Re: Cocoa and C99

2008-10-06 Thread Clark Cox
On Mon, Oct 6, 2008 at 12:49 AM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > > In the old days I wrote: > > int i; float f; > for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . > > Now I am trying to use the C99 style: > for( int i = 0, float f = 0.0; i < 5; i++, f+= 3.5 ) . > But I am told:

Re: Cocoa and C99

2008-10-06 Thread Andrew Farmer
On 06 Oct 08, at 00:49, Gerriet M. Denkmann wrote: In the old days I wrote: int i; float f; for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . Now I am trying to use the C99 style: for( int i = 0, float f = 0.0; i < 5; i++, f+= 3.5 ) . But I am told: "parse error before 'float'". Then I trie

Re: Cocoa and C99

2008-10-06 Thread Clark Cox
On Mon, Oct 6, 2008 at 1:00 AM, Andrew Farmer <[EMAIL PROTECTED]> wrote: > On 06 Oct 08, at 00:49, Gerriet M. Denkmann wrote: >> >> In the old days I wrote: >> >> int i; float f; >> for( i = 0, f = 0.0; i < 5; i++, f+= 3.5 ) . >> >> Now I am trying to use the C99 style: >> for( int i = 0, float

Re: window controllers and managed object contexts

2008-10-06 Thread Negm-Awad Amin
Am Sa,27.09.2008 um 19:01 schrieb Daniel Child: Hmm, well that seems to be the catch. I can't get the bindings to work for the MOC. First off, to set up the table displayed in the window loaded with a separate nib file, I simply dragged in an "entity" object from the Librarian. That doesn'

Re: Cocoa and C99

2008-10-06 Thread Patrick Mau
Hi Gerrit You could use explicit basic blocks: static void loop(void) { int i = 5; float f = 10.0; this(); and_that(); /* new badic block */ { int i; float f = 1.0; for (i = 0; i < 5; i++) {

Re: Crash with toolbars

2008-10-06 Thread Negm-Awad Amin
Am Mo,06.10.2008 um 12:24 schrieb Felipe Monteiro de Carvalho: BOOLs are signed char. Thanks, the toolbar is working now. Does anyone know where BOOL is declared? objc.h It's a very common word, so it's hard to find ... Command double click on "BOOL". -- Felipe Monteiro de Carvalho

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Joseph Ayers
I got the code for extracting samples from an Audio Buffer to compile and run without errors as: unsigned short *ippointer = (unsigned short *)abl->mBuffers[0].mData; unsigned short *idpointer = (unsigned short *)abl->mBuffers[1].mData; ipbuf = [[NSMutableArray alloc] i

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Graham Cox
On 6 Oct 2008, at 10:27 pm, Joseph Ayers wrote: I got the code for extracting samples from an Audio Buffer to compile and run without errors as: unsigned short *ippointer = (unsigned short *)abl- >mBuffers[0].mData; unsigned short *idpointer = (unsigned short *)abl- >mBuffers[1].mData;

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Graham Cox
On 6 Oct 2008, at 10:27 pm, Joseph Ayers wrote: unsigned short *ippointer = (unsigned short *)abl- >mBuffers[0].mData; unsigned short *idpointer = (unsigned short *)abl- >mBuffers[1].mData; [] nsamples = abl->mBuffers[0].mDataByteSize; for (isamp = 1; nsamples; isamp+

Re: Should not use mogenerator in Mac OS 10.5+ ?

2008-10-06 Thread Ingvar Nedrebo
I hacked the mogenerator header template file to emit property declarations for Core Data-generated accessors, and changed the source template files to not emit any code for accessors. So I get the convenience of mogenerator together with the supposedly more efficient Core Data accessors.

Re: Crash with toolbars

2008-10-06 Thread Graham Cox
On 6 Oct 2008, at 9:24 pm, Felipe Monteiro de Carvalho wrote: BOOLs are signed char. Thanks, the toolbar is working now. Does anyone know where BOOL is declared? It's a very common word, so it's hard to find ... To find out where any type or any symbol at all is defined, command- double-c

Re: Crash with toolbars

2008-10-06 Thread Felipe Monteiro de Carvalho
> BOOLs are signed char. Thanks, the toolbar is working now. Does anyone know where BOOL is declared? It's a very common word, so it's hard to find ... -- Felipe Monteiro de Carvalho ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Joseph Ayers
Wow. Many thanks, That certainly helped. With: unsigned short *ippointer = (unsigned short *)abl->mBuffers[0].mData; unsigned short *idpointer = (unsigned short *)abl->mBuffers[1].mData; ipbuf = [[NSMutableArray alloc] init]; idbuf = [[NSMutableArray alloc] init]

Master-Detail Interface Examples

2008-10-06 Thread Jamie Phelps
I'm looking for examples of well-designed Master-Detail interfaces. I have tried several different layouts for the details and haven't been satisfied with any of them. In looking at the layout, I think it has to do with the table view being rather wide and not finding a comfortable place to

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Graham Cox
On 6 Oct 2008, at 11:45 pm, Joseph Ayers wrote: Note the occurrence of samples with the value of 0 alternating with samples that are reasonable. However, this alternation is not rigid as the 0's can be substituted with reasonable numbers. Any idea what's going on here? Are you *sure* th

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Joseph Ayers
That doesn't seem to be it. The audio extraction interface http://developer.apple.com/quicktime/audioextraction.html returns: 2008-10-06 09:08:03.106 Roboplasm[33253:813]format flags= 41 2008-10-06 09:08:03.106 Roboplasm[33253:813]sample rate = 48000.00 2008-10-06 09:0

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Graham Cox
On 7 Oct 2008, at 12:12 am, Joseph Ayers wrote: 2008-10-06 09:08:03.109 Roboplasm[33253:813]format flags= 41 2008-10-06 09:08:03.110 Roboplasm[33253:813]sample rate = 48000.00 2008-10-06 09:08:03.110 Roboplasm[33253:813]bytes/packet = 4 2008-10-06 09:08:03.11

Re: How do I guarantee that an object is dealloced on the main thread?

2008-10-06 Thread Brian Stern
Ok, I've fixed this as recommended. It really wasn't too difficult to move all the interesting bits of dealloc to the stop method, and to zero out all the instance variables after they're released so this can be safely called more than once. This way I can call stop from the main thread a

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread Graham Cox
On 7 Oct 2008, at 12:34 am, Graham Cox wrote: 2008-10-06 09:08:03.109 Roboplasm[33253:813]format flags= 41 [] 2008-10-06 09:08:03.111 Roboplasm[33253:813]bits/channel = 32 format flags = 41 = 0x29 = 0b101001 flags: enum { kAudioFormatFlagIsFloat

Re: Data Types for Extracting samples from Audio Buffer: Resolved

2008-10-06 Thread Joseph Ayers
Graham: Bingo. With float *ippointer = (float *)abl->mBuffers[0].mData; float *idpointer = (float *)abl->mBuffers[1].mData; ipbuf = [[NSMutableArray alloc] init]; idbuf = [[NSMutableArray alloc] init]; NSNumber* ipsamp = [[NSNumber alloc] init];

expanding core data model sheet

2008-10-06 Thread Daniel Child
Hi All, This strikes me as something that should be absurdly easy to do, but I can't seem to find any examples with more than two or three entities, and so no one mentions it, and I don't see it in the documentation. How do you expand the Core Data model sheet??? (The part where entities

Re: expanding core data model sheet

2008-10-06 Thread Negm-Awad Amin
Am Mo,06.10.2008 um 16:48 schrieb Daniel Child: Hi All, This strikes me as something that should be absurdly easy to do, but I can't seem to find any examples with more than two or three entities, and so no one mentions it, and I don't see it in the documentation. How do you expand the

Re: Data Types for Extracting samples from Audio Buffer: Resolved

2008-10-06 Thread Nick Zitzmann
On Oct 6, 2008, at 8:46 AM, Joseph Ayers wrote: NSNumber* ipsamp = [[NSNumber alloc] init]; NSNumber* idsamp = [[NSNumber alloc] init]; You're still leaking memory here (assuming you're not using GC) by allocating empty un-autoreleased numbers and then overwriting the poi

Re: Problem setting the menu

2008-10-06 Thread Felipe Monteiro de Carvalho
Hi, Any idea about how to fix the menu problem would be appreciated. thanks, -- Felipe Monteiro de Carvalho ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: wasting space?

2008-10-06 Thread I. Savant
On Sun, Oct 5, 2008 at 4:13 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > "Debugging is twice as hard as writing the code in the first place. > Therefore, if you write the code as cleverly as possible, you are, by > definition, not smart enough to debug it." -- Brian W. Kernighan A very good sen

Re: Master-Detail Interface Examples

2008-10-06 Thread I. Savant
On Mon, Oct 6, 2008 at 8:54 AM, Jamie Phelps <[EMAIL PROTECTED]> wrote: > I'm looking for examples of well-designed Master-Detail interfaces. I have > tried several different layouts for the details and haven't been satisfied > with any of them. This is almost impossible to answer usefully witho

Invoking 'a Paste' Programmatically

2008-10-06 Thread Joshua Brickner
Hi All, I'm developing a Cocoa application which extends the functionality of the clipboard. I have global HotKey registered using Carbon, and this HotKey invokes a method in which I'm replacing the contents of the general Pasteboard. I want to take this one step further and have the method pas

About Launch Other Program

2008-10-06 Thread ka
Hi everybody, The following is a sample for launch other program, but I don't know how to launch the Safari when Clicked the "Lanuch Safari" Button after, why auto called the "modalView" method it? thank you very much. Source Code: #import "LaunchMeAppDelegate.h" @implementation LaunchMeAppDele

WebView Crash

2008-10-06 Thread Rui Li
Hi all, I have my own WebView window, and I need to make the Choose File button work on a "" item on a web page. I have implemented the WebUIDelegate method - (void)webView:(WebView *)sender runOpenPanelForFileButtonWithResultListener:(id)resultListener. Besides, I have register

Re: expanding core data model sheet

2008-10-06 Thread mmalc crawford
On Oct 6, 2008, at 7:48 AM, Daniel Child wrote: This strikes me as something that should be absurdly easy to do, but I can't seem to find any examples with more than two or three entities, and so no one mentions it, and I don't see it in the documentation. How do you expand the Core Data m

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread David Duncan
"In audio data a frame is one sample across all channels. If the ASBD describes non-interleaved audio, the byte and frame count fields describe one channel (mBytesPerPacket would be 2 for non- interleaved stereo 16-bit PCM). For interleaved audio, the fields describe the set of n channels (m

Re: Newbie: Simple display with NSView - problem

2008-10-06 Thread Genu Mathew
> I'm pretty sure this isn't what you're > proposing, but it could be one interpretation of your > description! Sorry, I should have phrased it better. I am trying to avoid hardcoding the filenames into the custom views > In the NIB, just use a "custom view", then set > its class to your clas

Downloading with NSData and NSFileManager

2008-10-06 Thread Mark Thomas
Hi All, I was looking at downloading some files, and started to look at NSFileManager to create the file, and then saw I could use NSData to load the data via a NSURL, so this look's pretty straight forward and very small code for downloading files. So I'm wondering what is the downside of usi

Open SSL on the iPhone

2008-10-06 Thread Alexander Hartner
I see that libssl and libcrypto have been removed from the iPhone. However my application uses low level unix sockets rather then the higher level NSUrlConnection. Not directly, but the framework / library I am using does. It would be very difficult to change my application, while it would

Re: Downloading with NSData and NSFileManager

2008-10-06 Thread Nick Zitzmann
On Oct 6, 2008, at 11:04 AM, Mark Thomas wrote: I was looking at downloading some files, and started to look at NSFileManager to create the file, and then saw I could use NSData to load the data via a NSURL, so this look's pretty straight forward and very small code for downloading files.

Re: wasting space?

2008-10-06 Thread Michael Ash
On Mon, Oct 6, 2008 at 11:56 AM, I. Savant <[EMAIL PROTECTED]> wrote: > On Sun, Oct 5, 2008 at 4:13 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > >> KVO is terribly, horribly, frighteningly flawed at the API level but it >> can still be very handy once you know the Magic Incantation. > > You just *

Re: hyphenationFactor in typesetter and layout manager

2008-10-06 Thread Aki Inoue
Ross, The hyphenation factor can be set for both NSATSTypesetter and NSLayoutManager. My tests indicate that it is sufficient to send setHyphenationFactor: to the typesetter alone (and simpler, if a document has multiple layouts). Is that correct, or must each layout manager's hyphenation

Re: Problem setting the menu

2008-10-06 Thread Peter Ammon
If you make a new Xcode project with the "Cocoa Application" template, you will get a functioning main menu. You can either base your project off of that, or use it to figure out what differs in your project to prevent the nib in your menu from showing up. If you still can't figure out why

Re: Master-Detail Interface Examples

2008-10-06 Thread Andre Masse
On Oct 6, 2008, at 08:54, Jamie Phelps wrote: I was considering a "double-click for details" approach, but I'm not sure if there's a design precedent for such a setup. I'm not averse to doing something new, but I don't want to do something the user is totally not expecting. I'm not sayin

synthesised variables on 64-bit

2008-10-06 Thread Stig Brautaset
I'm trying to make use of http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_7.html - but I'm not having any luck. Is there something I have to do other than setting the ARCHITECTURES setting to 32/64 bit? (I don't seem to have a 64-bit only settin

IKImageView and delegate callback/notification of image changes

2008-10-06 Thread Jim Turner
Hi list. Attempting to use IKImageView to implement a really basic image editor in my app and I've come across what appears to be a pretty odd omission: IKImageView never tells you when the image has been edited and needs saved. While the object supports a delegate, there's no documentation on wh

Re: Master-Detail Interface Examples

2008-10-06 Thread Andy Lee
On Oct 6, 2008, at 11:59 AM, I. Savant wrote: On Mon, Oct 6, 2008 at 8:54 AM, Jamie Phelps <[EMAIL PROTECTED]> wrote: I'm looking for examples of well-designed Master-Detail interfaces. I have tried several different layouts for the details and haven't been satisfied with any of them. Th

Re: synthesised variables on 64-bit

2008-10-06 Thread Nick Zitzmann
On Oct 6, 2008, at 1:09 PM, Stig Brautaset wrote: I'm trying to make use ofhttp://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_7.html - but I'm not having any luck. Is there something I have to do other than setting the ARCHITECTURES setting to 32/

RE: synthesised variables on 64-bit

2008-10-06 Thread Randy Widell
> Are you running the app in the debugger? If you're building a 4-way > universal binary, then the debugger will always launch the 32-bit > version of the executable, even if you're using a 64-bit Mac. > > If you want to build the app for 64-bit only, then you have to > manually set the architectu

Re: wasting space?

2008-10-06 Thread I. Savant
On Mon, Oct 6, 2008 at 2:05 PM, Michael Ash <[EMAIL PROTECTED]> wrote: > It baffles me how the KVO API came to be, given the good examples in > the API that the designers could have followed. I used to assume that > there was some advantage to it that I just hadn't discovered yet, but > after so m

Re: Cocoa Programming for Mac OsX Third Edition eBook search

2008-10-06 Thread David Orriss Jr
On Sun, Oct 5, 2008 at 2:51 AM, Howard Oakley <[EMAIL PROTECTED]> wrote: > On 05/10/2008 02:25, David Orriss Jr wrote: > >> I ran into the same thing. Probably one of my biggest complaints >> about Addison is that the ebooks they do are digitally signed and that >> the ONE platform Acrobat reader

Re: wasting space?

2008-10-06 Thread Erik Buck
I am no fan of KVO or bindings, but I disagree with Mike Ash on his analysis.   If you are even tempted to override - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context, you have missed the whole point of KVO IMHO.   Let the

Re: wasting space?

2008-10-06 Thread I. Savant
On Mon, Oct 6, 2008 at 4:22 PM, Erik Buck <[EMAIL PROTECTED]> wrote: > If you ever find yourself writing switch statements based on the return value > of a method you are doing something very wrong. If you have nested if > statements comparing strings, you are doing something wrong. What of

Re: wasting space?

2008-10-06 Thread Erik Buck
--- On Mon, 10/6/08, I. Savant <[EMAIL PROTECTED]> wrote: What of the "Graphics Bindings" example mmalc has on his examples page? Here: http://homepage.mac.com/mmalc/CocoaExamples/controllers.html I am not sure what Mmalc was attempting in his example. I looked at it again just now.It seems

Re: wasting space?

2008-10-06 Thread Michael Ash
On Mon, Oct 6, 2008 at 4:22 PM, Erik Buck <[EMAIL PROTECTED]> wrote: > I am no fan of KVO or bindings, but I disagree with Mike Ash on his analysis. > > If you are even tempted to override - (void)observeValueForKeyPath:(NSString > *)keyPath ofObject:(id)object change:(NSDictionary *)change contex

Re: wasting space?

2008-10-06 Thread Shawn Erickson
On Mon, Oct 6, 2008 at 1:22 PM, Erik Buck <[EMAIL PROTECTED]> wrote: > I am no fan of KVO or bindings, but I disagree with Mike Ash on his analysis. > > If you are even tempted to override - (void)observeValueForKeyPath:(NSString > *)keyPath ofObject:(id)object change:(NSDictionary *)change contex

Re: wasting space?

2008-10-06 Thread Erik Buck
I am very confused here. KVO has nothing to do with a call like valueForKeyPath:, other than the obvious fact that they are both built on the idea of key paths. The observeValueForKeyPath:ofObject:change:context: method doesn't interact with valueForKeyPath: in any way, and so I don't really under

Universal app fails on PPC.

2008-10-06 Thread David
I'm trying to test my universal app to make sure its really universal. In finder I did "get info" then selected "run with rosetta". When I do that the application traps. The console log says, Exited abnormally: Trace/BPT trap What does that mean? How can I determine why its not working? Is there

Re: Universal app fails on PPC.

2008-10-06 Thread Wayne Packard
On Oct 6, 2008, at 2:38 PM, David wrote: I'm including two other frameworks, Sparkle and AquaticPrime. Both of which I've compiled on my own to make sure settings said its generating universal output... or at least I think I set that right. You can use the lipo tool (see the -verify_arch and

Re: wasting space?

2008-10-06 Thread Michael Ash
On Mon, Oct 6, 2008 at 5:26 PM, Erik Buck <[EMAIL PROTECTED]> wrote: > >> I am very confused here. KVO has nothing to do with a call like >> valueForKeyPath:, other than the obvious fact that they are both built >> on the idea of key paths. The >> observeValueForKeyPath:ofObject:change:context: met

[Moderator] Re: Open SSL on the iPhone

2008-10-06 Thread Scott Anguish
On 6-Oct-08, at 1:46 PM, Alexander Hartner wrote: I see that libssl and libcrypto have been removed from the iPhone. For the moment this is still not for public discussion on this list. Please re-read http://developer.apple.com/iphone/program/. The new list rules will be posted when the

Re: NSURLConnection willSendRequest: not behaving as expected on a 302 response - no further response after nil return

2008-10-06 Thread Jerry Krinock
Fortunately for me I probably never read the documentation you quoted :) What I've done for a similar purpose, is to wait until I've got all the data I want in hand, and then send it a -cancel. Works fine. ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Problem setting the menu

2008-10-06 Thread Felipe Monteiro de Carvalho
I searched a lot in google and I can only see that the exact method that I tryed (using NSApp.setAppleMenu) works for some people and not for others ... maybe it only works in some Mac OS X versions. I am using Mac OS X 10.4. Also I even tryed NSBundle.loadNibNamed_owner to load a simple nib but i

NSWindowController retain counts, chapter 2

2008-10-06 Thread James Walker
After fixing things so that my NSWindowController subclass gets deallocated, I discovered that the NSWindow was not getting deallocated. It appears to be related to the fact that the NSWindow's retain count is incremented each time -[NSWindowController window] is called. I don't see anything i

Re: Data Types for Extracting samples from Audio Buffer: Resolved

2008-10-06 Thread Graham Cox
On 7 Oct 2008, at 1:46 am, Joseph Ayers wrote: ipsamp = [NSNumber numberWithFloat:(float)ippointer[isamp]]; [ipbufaddObject:ipsamp]; idsamp = [NSNumber numberWithFloat:(float)idpointer[isamp]]; [idbufaddObject:idsamp];

Re: Universal app fails on PPC.

2008-10-06 Thread Nick Zitzmann
On Oct 6, 2008, at 3:38 PM, David wrote: I'm trying to test my universal app to make sure its really universal. In finder I did "get info" then selected "run with rosetta". When I do that the application traps. The console log says, Exited abnormally: Trace/BPT trap What does that mean? How c

Re: Universal app fails on PPC.

2008-10-06 Thread David Melgar
Yes it does use GC. Wow. I had no idea it wouldn't work with rosetta. Does GC work on a ppc machine? Given that I don't have access to a ppc machine, sounds like I can't test if it works. Given that it's obviously a leopard only application, I'm not sure if I should claim support for ppc

Re: NSWindowController retain counts, chapter 2

2008-10-06 Thread Graham Cox
On 7 Oct 2008, at 9:57 am, James Walker wrote: After fixing things so that my NSWindowController subclass gets deallocated, I discovered that the NSWindow was not getting deallocated. It appears to be related to the fact that the NSWindow's retain count is incremented each time - [NSWind

Re: Universal app fails on PPC.

2008-10-06 Thread Nick Zitzmann
On Oct 6, 2008, at 6:08 PM, David Melgar wrote: Yes it does use GC. Wow. I had no idea it wouldn't work with rosetta. Does GC work on a ppc machine? Yes, and it works on PPC64 as well. It's just Rosetta that doesn't support the GC library for some reason. Nick Zitzmann

Re: NSWindowController retain counts, chapter 2

2008-10-06 Thread James Walker
Graham Cox wrote: On 7 Oct 2008, at 9:57 am, James Walker wrote: After fixing things so that my NSWindowController subclass gets deallocated, I discovered that the NSWindow was not getting deallocated. It appears to be related to the fact that the NSWindow's retain count is incremented each

Re: Invoking 'a Paste' Programmatically

2008-10-06 Thread Colin Barrett
On Sun, Oct 5, 2008 at 8:42 PM, Joshua Brickner <[EMAIL PROTECTED]> wrote: > I'm wondering if there is a way to programmatically call 'Paste' If you're running in the process of the foreground app, you could do something along the lines of: [[[NSApp mainWindow] firstResponder] paste:nil]; You co

CDMA Programming

2008-10-06 Thread Alex Wait
I know that the iPhone uses cell phone communication technologies, probably like CDMA. (I am a huge n00b on this area of expertise). I am in a group project that needs to do some CDMA programming. Any ideas if there are any C libraries that can help with this function? Thanks! -- If you can't be

re: Code Data: Re-inserting deleted objects

2008-10-06 Thread Ben Trumbull
Chaitanya, What is the best way to re-insert a deleted object back in to the managed object context? -insertObject: will reinsert a deleted object. -insertObject and - deleteObject will cancel each other out. Typically, one wouldn't validateForInsert until after reinserting the object,

Re: NSWindowController retain counts, chapter 2

2008-10-06 Thread Graham Cox
On 7 Oct 2008, at 11:38 am, James Walker wrote: NSWindowController has a perfectly good member variable called 'window' that supplies the window in question, and is returned by the -window method (provided you remembered to hook it up in IB of course). NSWindowController.h does not say t

performSelectorOnMainThread Help

2008-10-06 Thread Sandro Noel
Greetings. I need to gain a better understanding of performSelectorOnMainThread I have my main window that had a delegate and the delegate spawns threads, once the threads(NSOperation) are done they return a string, I use to do it thru a delegate but Core Data does not appreciate multiple ac

[MEET] Minnesota CocoaHeads 10/9/08

2008-10-06 Thread Bob McCune
The next Minnesota CocoaHeads meeting is this Thursday (10/9) from 6:00-8:00pm. We meet at the offices of Synergy Information Services in Bloomington. Gerd Knops, from bitart, will be discussing Cocoa Bindings. Please join us as Gerd guides us through the ins and outs of working with th

Re: Core Data: Copying and pasting chained entities

2008-10-06 Thread Ben Trumbull
Renaud, Now, I am nearly sure that I cannot use the NSArchiver/NSUnarchiver with NSManagedObjects, because NSArchiver/NSUnarchiver know nothing about Core Data relationships and because NSUnarchiver won't know how to insert an object in the managed object context. That's correct. Manage

Re: performSelectorOnMainThread Help

2008-10-06 Thread Peter Sagerson
You appear to have declared updateAirDate: to be an instance method, but you're sending the message to the class. You want something more like [appDelegate performSelectorOnMainThread:@selector(updateAirDate:) withObject:airDate waitUntilDone:NO]; where appDelegate is the relevant instanc

Re: Universal app fails on PPC.

2008-10-06 Thread Clark Cox
On Mon, Oct 6, 2008 at 5:08 PM, David Melgar <[EMAIL PROTECTED]> wrote: > Yes it does use GC. Wow. I had no idea it wouldn't work with rosetta. Does > GC work on a ppc machine? GC works fine on real ppc machines, it's just Rosetta that doesn't support it (Rosetta doesn't support ppc64 either, BTW)

Re: NSWindowController retain counts, chapter 2

2008-10-06 Thread James Walker
Graham Cox wrote: I can accept that looking at retain counts may just be confusing me, but "just following the rules" hasn't sufficed. Well, what is it in "the rules" that you are not understanding? I didn't say I didn't understand the rules. Do you think it's inconceivable that there mig

Re: wasting space?

2008-10-06 Thread Rob Keniger
On 07/10/2008, at 7:26 AM, Erik Buck wrote: You really don't need to override - observeValueForKeyPath:ofObject:change:context:. Or at least I haven't needed to override it because one of the existing NSController subclasses usually meets my needs. If you are implementing manual binding

Re: CDMA Programming

2008-10-06 Thread Gordon Apple
iphone is on AT&T which does not use CDMA. All the CDMA-based companies, Verizon, Sprint, and AllTel license their technology from QualComm. I used to teach short courses and seminars about similar spread-spectrum technologies and I knew Andy Viterbi, one of the founders of QualComm. Just Sa

Re: CDMA Programming

2008-10-06 Thread Gordon Apple
(Whoops, did it again. Forgot to change the title. -- GA) iphone is on AT&T which does not use CDMA. All the CDMA-based companies, Verizon, Sprint, and AllTel license their technology from QualComm. I used to teach short courses and seminars about similar spread-spectrum technologies and I

Re: NSWindowController retain counts, chapter 2

2008-10-06 Thread Graham Cox
On 7 Oct 2008, at 1:56 pm, James Walker wrote: I didn't say I didn't understand the rules. Do you think it's inconceivable that there might be bugs in the OS when you start mixing Cocoa and Carbon? It's not inconceivable. But the chances are very high that the bug is yours. Do let us kn

Re: CDMA Programming

2008-10-06 Thread Andrew Farmer
On 06 Oct 08, at 18:19, Alex Wait wrote: I know that the iPhone uses cell phone communication technologies, probably like CDMA. (I am a huge n00b on this area of expertise). I am in a group project that needs to do some CDMA programming. Any ideas if there are any C libraries that can help w

[Moderator] Re: CDMA Programming

2008-10-06 Thread Scott Anguish
For the moment iPhone is still not for public discussion on this list. (and it isn't cocoa related, so likely won't ever be) Please re-read http://developer.apple.com/iphone/program/. The new list rules will be posted when the new program terms are. Thanks scott [moderator] On 6-Oct-0

comparing Strings.

2008-10-06 Thread Sandro Noel
Gretings. i'm having a problem comparing some type of strings, for example the one giving me a problem right now. is let's say in my database i have 4 version of the same string . "sandro's computer" "sandro's_computer" "sandros computer" "sandros_computer" I would like them to compare as be

Re: comparing Strings.

2008-10-06 Thread Graham Cox
On 7 Oct 2008, at 4:22 pm, Sandro Noel wrote: i'm having a problem comparing some type of strings, for example the one giving me a problem right now. is let's say in my database i have 4 version of the same string . "sandro's computer" "sandro's_computer" "sandros computer" "sandros_computer

Re: comparing Strings.

2008-10-06 Thread Dan Ribe
Not aware of any such custom implementation of the strcmp() functions But here is something which you can try : Take the words from the first strings & search them in the second. If all words exists in the same order (compare the index to determine the order), then you can say that these are