Re: NSXMLParser frees itself on error?

2009-05-06 Thread Jeff Johnson
On May 7, 2009, at 12:27 AM, Marcel Weiher wrote: OK, quiz time: the reason for NSMutableString to relinquish ownership is to (a) release the object (b) allow someone else to take ownership? Answer: always (a), sometimes (b), and sometimes (c). EXACTLY. Autorelease allows ownership trans

Re: Dynamic Layout

2009-05-06 Thread Andreas Grosam
On May 7, 2009, at 6:01 AM, Bridger Maxwell wrote: Hey, I have a project in which I need to construct an interface, composed of several "widgets," dynamically. Basically, when the user starts the application they choose which components they will be working with. Each of these components w

Re: Problem Embedding Cocoa Framework

2009-05-06 Thread Gwynne Raskind
On May 6, 2009, at 9:43 PM, Marcel Weiher wrote: Nick, thanks for the tip, you set me on the right track. Here is my new understanding of the problem. In my framework target settings, the Dynamic Library Install Name is set to: $(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH) T

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread Graham Cox
It would be nice if there were an API that returned a list of all of an object's properties as discoverable by the normal valueForKey: rules, though I'm not sure it's technically possible On 07/05/2009, at 4:27 PM, BJ Homer wrote: class_copyPropertyList() Ah, well, that answers that que

Re: Help Making Shell Script Accept Spaces

2009-05-06 Thread Nick Zitzmann
On May 7, 2009, at 12:19 AM, Bridger Maxwell wrote: Can you help me make it compatible with directories that contain space characters? Always, always, always wrap paths in shell scripts using quotes. "\"@executable_path/../Frameworks/SCMercury.framework/Versions/A/ SCMercury\"" You put o

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread Graham Cox
On 07/05/2009, at 4:18 PM, Seth Willits wrote: It's still a little "clunky" (on the child-side) but less-so than other ideas I had, and feels more proper than the ones I've been using. Yep, it's a little clunky ;-) (If anyone has a better solution I'm all ears). It would be nice if ther

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread BJ Homer
On Wed, May 6, 2009 at 11:55 PM, Graham Cox wrote: > > > I could be wrong, but I don't think this is possible. However, I have > solved this by minimising the tedium of having to register for all those > individual property observations as follows: > > A. each observable object class exports a lis

Help Making Shell Script Accept Spaces

2009-05-06 Thread Bridger Maxwell
Hey, I have a shell script that I run as part of my build process that breaks when there is a space character anywhere in the project path. I can't remember where I got the shell script, or even exactly what it does (it had something to do with the fact I wanted the IB plugin to live within the fra

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread Seth Willits
On May 6, 2009, at 10:55 PM, Graham Cox wrote: I could be wrong, but I don't think this is possible. However, I have solved this by minimising the tedium of having to register for all those individual property observations as follows: A. each observable object class exports a list of proper

Re: Crashing resetting or releasing an NSManagedObjectContext

2009-05-06 Thread Ben Trumbull
Well, that was quick. With NSZombieEnabled, I get this when deallocating my context: *** -[VetVisit_VetVisit_ _hasRetainedStoreResources]: message sent to deallocated instance 0x16b85600 VetVisit is class that represents an Entity in my object model - the Pet entity has a collection of VetVisit

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread Graham Cox
On 07/05/2009, at 3:36 PM, Seth Willits wrote: Ok, maybe I should have been more explicit. If the child object has 100 properties and a hierarchy of its own, there's no way I'm going to register the parent as an observer for each property explicitly. Barf. Which is why I said one method wa

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread Seth Willits
On May 6, 2009, at 10:36 PM, Seth Willits wrote: Which is why I said one method was to override setValue:forKey: in the child to trigger a single observable key (isModified). But I still don't like the solution much. And actually now that I think about it, in a different project I even ov

Re: catching whitespace with scanner

2009-05-06 Thread Stuart Malin
On May 6, 2009, at 7:08 PM, Daniel Child wrote: I'm trying to catch whitespace between words with a scanner. For some reason, the white space is not being recognized. Am I missing something obvious or is there a bug here? Thanks. NSScanner defaults to skipping whitespace and newlines. Try ad

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread Seth Willits
On May 6, 2009, at 10:27 PM, Graham Cox wrote: This happens often enough that I need a real plan. I typically have parent objects with child objects that have attributes bound to different things in a GUI or possibly even unbound and simply modified by something else. The parent object ne

Re: Strategy for acting on changes in child objects?

2009-05-06 Thread Graham Cox
On 07/05/2009, at 3:18 PM, Seth Willits wrote: This happens often enough that I need a real plan. I typically have parent objects with child objects that have attributes bound to different things in a GUI or possibly even unbound and simply modified by something else. The parent object nee

Re: NSXMLParser frees itself on error?

2009-05-06 Thread Marcel Weiher
On May 6, 2009, at 21:34 , Jeff Johnson wrote: Ownership 'transfer' is rare. If you call +alloc or -copy, for example, ownership is transferred to the caller. Otherwise, there's no such thing. The fact that you think this is a testament to how well - autorelease works :-) How about +[N

Re: Printing an NSDocument

2009-05-06 Thread Dave Robertson
For the record, the unusual NSPrinting errors I encountered are the result of passing a nil reference as the first parameter to + (NSPrintOperation *)printOperationWithView:(NSView *)aView printInfo: (NSPrintInfo *)aPrintInfo Hope this helps someone else in the future. Regards, Dave.

Re: catching whitespace with scanner

2009-05-06 Thread Daniel Child
A whole while loop reduced to one line. Very cool. Thanks also for the tip on setCharactersToBeSkipped:nil. That was driving me nuts. On May 7, 2009, at 1:13 AM, Graham Cox wrote: On 07/05/2009, at 3:05 PM, Daniel Child wrote: I'm trying to catch whitespace between words with a scanner. For

Strategy for acting on changes in child objects?

2009-05-06 Thread Seth Willits
This happens often enough that I need a real plan. I typically have parent objects with child objects that have attributes bound to different things in a GUI or possibly even unbound and simply modified by something else. The parent object needs to perform some type of action whenever one

Re: catching whitespace with scanner

2009-05-06 Thread Graham Cox
On 07/05/2009, at 3:05 PM, Daniel Child wrote: I'm trying to catch whitespace between words with a scanner. For some reason, the white space is not being recognized. Am I missing something obvious or is there a bug here? Thanks. { NSMutableArray *separateWords; NSScanner *sca

Re: catching whitespace with scanner

2009-05-06 Thread Adam R. Maxwell
On May 6, 2009, at 10:05 PM, Daniel Child wrote: I'm trying to catch whitespace between words with a scanner. For some reason, the white space is not being recognized. Am I missing something obvious or is there a bug here? Thanks. NSScanner skips whitespace and newlines by default. Use s

catching whitespace with scanner

2009-05-06 Thread Daniel Child
I'm trying to catch whitespace between words with a scanner. For some reason, the white space is not being recognized. Am I missing something obvious or is there a bug here? Thanks. { NSMutableArray *separateWords; NSScanner *scanner; NSCharacterSet *spaceCharSet;

Re: NSXMLParser frees itself on error?

2009-05-06 Thread Jeff Johnson
On May 6, 2009, at 9:38 PM, Marcel Weiher wrote: On May 6, 2009, at 18:45 , Jeff Johnson wrote: I think you misunderstand the problem that autorelease is trying to solve, which is to allow ownership transfer from a callee back to its caller, not to just simply delay a release until "later".

Re: Dynamic Layout

2009-05-06 Thread Graham Cox
On 07/05/2009, at 2:01 PM, Bridger Maxwell wrote: I have a project in which I need to construct an interface, composed of several "widgets," dynamically. Basically, when the user starts the application they choose which components they will be working with. Each of these components will hav

Dynamic Layout

2009-05-06 Thread Bridger Maxwell
Hey, I have a project in which I need to construct an interface, composed of several "widgets," dynamically. Basically, when the user starts the application they choose which components they will be working with. Each of these components will have a nib file, with a single view. They will all be di

Re: NSXMLParser frees itself on error?

2009-05-06 Thread Stephen J. Butler
On Wed, May 6, 2009 at 5:49 PM, Jeff Johnson wrote: > I find this idea somewhat suspect. It seems to undermine the basic function > of the autorelease call, which is delay a release until later. > > The reasoning here could be taken to the point of absurdity. This is because > a 'callee' (self, th

Re: stringByTrimmingCharactersInSet

2009-05-06 Thread Joar Wingfors
On 6 maj 2009, at 18.16, Simon Raisin wrote: NSString *s = [@"1,660.0" stringByTrimmingCharactersInSet: [NSCharacterSet characterSetWithCharactersInString:@","]]; For some reason s is always "1,660.0". Shouldn't the comma be removed? No, check the documentation... :-) "Returns

Re: stringByTrimmingCharactersInSet

2009-05-06 Thread Graham Cox
On 07/05/2009, at 11:16 AM, Simon Raisin wrote: NSString *s = [@"1,660.0" stringByTrimmingCharactersInSet: [NSCharacterSet characterSetWithCharactersInString:@","]]; For some reason s is always "1,660.0". Shouldn't the comma be removed? No, that method only trims characters from the ends

stringByTrimmingCharactersInSet

2009-05-06 Thread Simon Raisin
NSString *s = [@"1,660.0" stringByTrimmingCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@","]]; For some reason s is always "1,660.0". Shouldn't the comma be removed? Thanks, CxT ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Core Data Issue

2009-05-06 Thread Scott Daner
I seem to be having an issue with Core Data. I can only have like 4 attributes in my entity or else it won't add a new object to the array when the user clicks add in the application. It just loads into the debugger. It seems to be solely based on the number of attributes. I have tested it

Re: UIToolbar setItems:animated: broken?

2009-05-06 Thread Mike Manzano
I recant that statement. It's working now. Maybe I just missed it. On May 6, 2009, at 9:52 AM, Luke the Hiesterman wrote: I don't know anything about this being broken. If you're in the iPhone Developer Program, please check this against the latest 3.0 seed. If it reproduces there, please f

Re: NSXMLParser frees itself on error?

2009-05-06 Thread Marcel Weiher
On May 6, 2009, at 18:45 , Jeff Johnson wrote: I think you misunderstand the problem that autorelease is trying to solve, which is to allow ownership transfer from a callee back to its caller, not to just simply delay a release until "later". Ownership 'transfer' is rare. If you call +al

Re: A tree data structure?

2009-05-06 Thread BJ Homer
On Wed, May 6, 2009 at 2:15 AM, Andreas Grosam wrote: > > On May 5, 2009, at 6:54 PM, Clark Cox wrote: > > On Tue, May 5, 2009 at 8:28 AM, Andreas Grosam >> wrote: >> >>> >>> On May 5, 2009, at 3:21 PM, Ken Thomases wrote: >>> Since you mention NSTreeController and CFTree, you may alre

Re: Problem Embedding Cocoa Framework

2009-05-06 Thread Nick Zitzmann
On May 6, 2009, at 7:31 PM, George King wrote: Is there some good logic behind this difference? Should I just replace $(DYLIB_INSTALL_NAMEBASE:standardizebasepath) with @executable_path/../Frameworks? Yes. Lastly, what about @rpath? I haven't even used it yet. I use @loader_path for m

Re: NSXMLParser frees itself on error?

2009-05-06 Thread Jeff Johnson
On May 6, 2009, at 7:57 PM, Marcel Weiher wrote: On May 6, 2009, at 15:49 , Jeff Johnson wrote: I still maintain that it's never safe to release/autorelease an object from inside one of it's delegate calls. If it works at all, you're implicitly relying on an implementation detail that's subj

Re: Problem Embedding Cocoa Framework

2009-05-06 Thread Marcel Weiher
On May 6, 2009, at 18:31 , George King wrote: Nick, thanks for the tip, you set me on the right track. Here is my new understanding of the problem. In my framework target settings, the Dynamic Library Install Name is set to: $(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH) Th

Re: Integer as key in NSMutableDictionary

2009-05-06 Thread Marcel Weiher
Hi Greg, hope the runtime is being docile. :-) On May 4, 2009, at 23:24 , Greg Parker wrote: That's right. In some discussions of object-oriented programming, a distinction is made between "value objects" and "reference objects". Two value objects can be "equal" if they share the same "valu

Re: Problem Embedding Cocoa Framework

2009-05-06 Thread George King
Nick, thanks for the tip, you set me on the right track. Here is my new understanding of the problem. In my framework target settings, the Dynamic Library Install Name is set to: $(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH) This is for both Debug and Release. However these e

Re: Create disk image files

2009-05-06 Thread Kyle Sluder
On Wed, May 6, 2009 at 7:23 PM, Dave Geering wrote: > It's reassuring that I was already heading the right way and that my > fruitless search was inevitable, but it's a pity that the creation of > disk images has not been exposed via a programming interface. I > suppose it's not something that pro

Re: NSXMLParser frees itself on error?

2009-05-06 Thread Marcel Weiher
On May 6, 2009, at 15:49 , Jeff Johnson wrote: I still maintain that it's never safe to release/autorelease an object from inside one of it's delegate calls. If it works at all, you're implicitly relying on an implementation detail that's subject to change. I find this idea somewhat suspe

Re: Problem Embedding Cocoa Framework

2009-05-06 Thread Nick Zitzmann
On May 6, 2009, at 6:13 PM, George King wrote: Can anybody suggest a solution, or at least a next step for debugging this problem? Try searching around for information about @executable_path and @loader_path. Nick Zitzmann __

Problem Embedding Cocoa Framework

2009-05-06 Thread George King
I am having trouble embedding a framework into my app; I get the following error on the console: dyld: Library not loaded: /Frameworks/libxml.framework/Versions/2.7.3/ libxml Referenced from: /Users/G/Code/FMLab/build/Debug/FMLab.app/Contents/ MacOS/FMLab Reason: image not found I buil

Re: Create disk image files

2009-05-06 Thread Dave Geering
On Thu, May 7, 2009 at 8:52 AM, Jeff Johnson wrote: > Nope. > Yep. > There is none. It's reassuring that I was already heading the right way and that my fruitless search was inevitable, but it's a pity that the creation of disk images has not been exposed via a programming interface. I suppose it

Re: Create disk image files

2009-05-06 Thread Mike Abdullah
On 6 May 2009, at 23:35, Dave Geering wrote: Hi list, Is there any framework that can be used for the creation of disk image files, or do I have to resort to NSTask and hdiutil? I can't seem to find any documentation about programmatically creating disk image files. You do have to resort to

Re: Custom tableView cell by subclassing NSCell

2009-05-06 Thread Corbin Dunn
On May 6, 2009, at 3:50 PM, Malayil George wrote: Thanks Joar. Turns out you were right...it wasn't really because of the retain/copy semantics in my property declaration. Changing the variable name to myImage and the setter/getters accordingly has taken care of the issue and it works fi

Re: Create disk image files

2009-05-06 Thread Jeff Johnson
On May 6, 2009, at 5:35 PM, Dave Geering wrote: Hi list, Is there any framework that can be used for the creation of disk image Nope. files, or do I have to resort to NSTask and hdiutil? I can't seem to Yep. find any documentation about programmatically creating disk image files. Ther

Re: Custom tableView cell by subclassing NSCell

2009-05-06 Thread Malayil George
Thanks Joar. Turns out you were right...it wasn't really because of the retain/copy semantics in my property declaration. Changing the variable name to myImage and the setter/getters accordingly has taken care of the issue and it works fine. George On Tue, May 5, 2009 at 9:23 PM, Joar Wingfors w

Re: NSXMLParser frees itself on error?

2009-05-06 Thread Jeff Johnson
On May 4, 2009, at 1:31 PM, Stephen J. Butler wrote: On Fri, May 1, 2009 at 11:18 AM, Jesper Storm Bache wrote: I have not used NSXMLParser, but as far as I can tell from your email, cleanupShowParsing is called in response to a call to the parser delegate. In that case, you should not rel

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Chris Idou
Is there any point in doing that in the normal case, seeing as a non-running application (cover-flow) can potentially be a lot larger icon than a running one? (of course, if you need to have a badged dock icon, or something like that, I can see the point).

Re: Core Data Migration and the Inexperienced Younger Self

2009-05-06 Thread Melissa J. Turner
Context is important. Also future-proofing. If your app was originally written against v1 CoreData (Tiger), you need to update the app to be wise enough to check the store's metadata and run away, run away from any store containing unexpected values (ie version hash information). v1 CoreDa

Create disk image files

2009-05-06 Thread Dave Geering
Hi list, Is there any framework that can be used for the creation of disk image files, or do I have to resort to NSTask and hdiutil? I can't seem to find any documentation about programmatically creating disk image files. Cheers, Dave. ___ Cocoa-dev ma

[ANN] RegexKitLite 3.0 - Released

2009-05-06 Thread John Engelhart
The release version of RegexKitLite 3.0 is now available. You can download it at: http://downloads.sourceforge.net/regexkit/RegexKitLite-3.0.tar.bz2 Documentation is available at: http://regexkit.sourceforge.net/RegexKitLite/index.html XCode 3 integrated documentation is also available: feed:// reg

NSURLConnection leaks pre-10.5. Any workaround?

2009-05-06 Thread Sidney San Martín
NSURLConnection is leaking in Tiger (including 10.4.11). From research, it looks like this has been discovered and brought repeatedly over the last few years but a working solution has never been posted. The leaks affect both the synchronous and asynchronous invocations of NSURLConnection. I put to

Re: How to align a custom view in a toolbar ???

2009-05-06 Thread Anders Lassen
Thanks, It solved the problem. On May 6, 2009, at 10:41 AM, jonat...@mugginsoft.com wrote: Try inserting an NSToolbarFlexibleSpaceItemIdentifier item into the tool bar before your custom view. On 6 May 2009, at 04:30, Anders Lassen wrote: Hi, I am working on a program where I plan to put

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Kyle Sluder
On Wed, May 6, 2009 at 4:40 PM, Ricky Sharp wrote: > The only disadvantage to PDF (or vector-based artwork) is that you'll have > longer initial load times.  But, I created an 'image factory' to help me > manage that.  I can mark certain images as being 'pre-load' and load them up > during app sta

Programmatic access to NSSearchField's Display Name?

2009-05-06 Thread jmunson
Namaste! Is there a way to programmatically access the Display Name attribute of the search field for a given predicate? I've got a number of predicates set up via IB and several of them I need to be able to change the display name at run time. Thanks! Peace, Love, and Light, /s/ Jon C.

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Ricky Sharp
On May 6, 2009, at 2:12 PM, Eric E. Dolecki wrote: That's where I first saw PDFs used like that. Coming from Flash, we take vector as a given but bitmaps are more processor friendly. Is there a clear advantage using PDFs instead of bitmaps? Do PDFs remain vector in their rendering, or are

Re: ViewControllers and window nibs

2009-05-06 Thread jonat...@mugginsoft.com
On 6 May 2009, at 20:44, David Scheidt wrote: I've got a Core Data app, using the NSPersistantDocument stuff. There are three basic entity types. There is one, which I'll call MainEntity, which has optional to-many relationships with the other two, which I'll call A and B. In my main wi

ViewControllers and window nibs

2009-05-06 Thread David Scheidt
I've got a Core Data app, using the NSPersistantDocument stuff. There are three basic entity types. There is one, which I'll call MainEntity, which has optional to-many relationships with the other two, which I'll call A and B. In my main window, I have a TableView, which has its columns

Core Data Migration and the Inexperienced Younger Self

2009-05-06 Thread I. Savant
List: I'm having some trouble solving what I believe is a basic task with Core Data. That is, the proper handling of a v1 user opening a v2 file. I want to disallow it altogether. The app in question targets 10.5 and above and (hopefully) uses automatic versioning / migration. I added a new vers

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Shawn Erickson
On Wed, May 6, 2009 at 12:12 PM, Eric E. Dolecki wrote: > That's where I first saw PDFs used like that. Coming from Flash, we take > vector as a given but bitmaps are more processor friendly. Is there a clear > advantage using PDFs instead of bitmaps? Do PDFs remain vector in their > rendering, or

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Eric E. Dolecki
That's where I first saw PDFs used like that. Coming from Flash, we take vector as a given but bitmaps are more processor friendly. Is there a clear advantage using PDFs instead of bitmaps? Do PDFs remain vector in their rendering, or are they simply converted to bitmap and then used? On Wed, May

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Shawn Erickson
On Wed, May 6, 2009 at 11:45 AM, Eric E. Dolecki wrote: > I don't want to hijack this thread, but is it acceptable to use small PDF > files for things like game assets, or does vector artwork bog the processor > down and bitmaps are preferred? It shouldn't cause any problems unless you are const

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Eric E. Dolecki
I don't want to hijack this thread, but is it acceptable to use small PDF files for things like game assets, or does vector artwork bog the processor down and bitmaps are preferred? On Wed, May 6, 2009 at 1:38 PM, Clark Cox wrote: > On Wed, May 6, 2009 at 7:44 AM, Chris Idou wrote: > > > > > >

Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!

2009-05-06 Thread Jim Correia
On Wed, May 6, 2009 at 1:05 PM, Jerry Krinock wrote: >> In any case using multiple MOCs for different jobs is a good idea. > > Accessing the same store?  I always thought that was a bad idea, but I'll > give it some thought. Using multiple MOCs with a single persistent store coordinator is suppo

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Clark Cox
On Wed, May 6, 2009 at 7:44 AM, Chris Idou wrote: > > > Is it possible to use a vector graphic as a dock icon? That depends. For a running application, you can set the application image to anything that NSImage supports. For the icon when your app isn't running, it needs to be a *.icns file. Fort

Re: +[NSApp nextEventMatchingMask:...] from other thread

2009-05-06 Thread Ken Thomases
On May 6, 2009, at 11:55 AM, Sidney San Martín wrote: I recently found out that +[NSURLConnection sendSynchronousRequest:...] leaks in Tiger, so I'm trying to write my own implementation (these connections are already threaded and make more sense to run synchronously). I use +[NSApp nextEventMat

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread Michael Ash
On Wed, May 6, 2009 at 12:58 PM, Eric Hermanson wrote: > > On May 6, 2009, at 12:24 AM, Michael Ash wrote: > >> Background threads, whether directly managed by you or >> indirectly created by NSOperationQueue, do not use a runloop by >> default. > > I did not realize that.  I knew threads created

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread Michael Ash
On Wed, May 6, 2009 at 1:03 PM, Jonathon Kuo wrote: > On May 6, 2009, at 9:03 AM, Michael Ash wrote: > >> It is correct that every thread conceptually has exactly one runloop. >> I say "conceptually" because in fact they are created on demand. > > So if a thread has no need to pay attention to asy

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread Ken Thomases
On May 6, 2009, at 12:03 PM, Jonathon Kuo wrote: On May 6, 2009, at 9:03 AM, Michael Ash wrote: It is correct that every thread conceptually has exactly one runloop. I say "conceptually" because in fact they are created on demand. So if a thread has no need to pay attention to asynchronous e

Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!

2009-05-06 Thread Jerry Krinock
On 2009 May 06, at 02:13, Alexander Spohr wrote: The MOC knows the objects is deleted. If you try to refetch it, the MOC has to clear all attributes because it does not exist anymore (in the MOCs view of the database). Is the primary key still the same? If it is not null now as well...

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread Jonathon Kuo
On May 6, 2009, at 9:03 AM, Michael Ash wrote: It is correct that every thread conceptually has exactly one runloop. I say "conceptually" because in fact they are created on demand. So if a thread has no need to pay attention to asynchronous events (timers, input sources, etc) but is only in

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Shawn Erickson
On Wed, May 6, 2009 at 7:44 AM, Chris Idou wrote: > Is it possible to use a vector graphic as a dock icon? Application icons currently cannot be vector images however you can set the dock image for a running application to an NSImage constructed from a PDF, etc. http://developer.apple.com/docum

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread Eric Hermanson
On May 6, 2009, at 12:24 AM, Michael Ash wrote: Background threads, whether directly managed by you or indirectly created by NSOperationQueue, do not use a runloop by default. I did not realize that. I knew threads created by the user did not use NSRunLoop, but I assumed threads created by

+[NSApp nextEventMatchingMask:...] from other thread

2009-05-06 Thread Sidney San Martín
I recently found out that +[NSURLConnection sendSynchronousRequest:...] leaks in Tiger, so I'm trying to write my own implementation (these connections are already threaded and make more sense to run synchronously). I use +[NSApp nextEventMatchingMask:...] in the custom implementation to block unti

Disabling check box cells

2009-05-06 Thread John Baldwin
I'm fairly new to Cocoa, and I have a table with columns bound to an arraycontroller. I turned off the "enabled" option for the column and the cell on the check box cell column, and it looks disabled in IB, but when I run my application, I am still able to check and uncheck the checkbox.

Re: UIToolbar setItems:animated: broken?

2009-05-06 Thread Luke the Hiesterman
I don't know anything about this being broken. If you're in the iPhone Developer Program, please check this against the latest 3.0 seed. If it reproduces there, please file a bug report. Luke On May 6, 2009, at 12:00 AM, Mike Manzano wrote: Regardless of whether I supply YES or NO for the a

Re: Cancel NSThread - cocoa/mysql database search...

2009-05-06 Thread Bill Bumgarner
On May 6, 2009, at 8:22 AM, Sparta wrote: I am working on cocoa – MySQL application that connects to the MySQL database and retrieves the records. I run the search in a NSThread. I wish to cancel the search if needed, as the searching of the desired data takes 15-20 minutes due to the bigger

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread Michael Ash
On Wed, May 6, 2009 at 11:49 AM, Jonathon Kuo wrote: > On May 4, 2009, at 8:12 PM, Ken Thomases wrote Re: 'A couple NSRunLoop > questions': > >> Every thread has exactly one run loop associated with it.  You don't >> create run loops nor do you remove them. > > On May 5, 2009, at 9:24 PM, Michael

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread A.M.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 6, 2009, at 11:49 AM, Jonathon Kuo wrote: On May 4, 2009, at 8:12 PM, Ken Thomases wrote Re: 'A couple NSRunLoop questions': Every thread has exactly one run loop associated with it. You don't create run loops nor do you remove them.

Re: Cancel NSThread - cocoa/mysql database search...

2009-05-06 Thread Michael Ash
On Wed, May 6, 2009 at 11:22 AM, Sparta wrote: > Hi Friends, > > I am working on cocoa ­ MySQL application that connects to the MySQL > database and retrieves the records. > I run the search in a NSThread. I wish to cancel the search if needed, as > the searching of the desired data takes 15-20 mi

Re: NSNotificationQueue & NSOperationQueue thread death

2009-05-06 Thread Jonathon Kuo
On May 4, 2009, at 8:12 PM, Ken Thomases wrote Re: 'A couple NSRunLoop questions': Every thread has exactly one run loop associated with it. You don't create run loops nor do you remove them. On May 5, 2009, at 9:24 PM, Michael Ash wrote Re: 'NSNotificationQueue & NSOperationQueue thread

Re: RunLoops and performSelectorOnMainThread problem

2009-05-06 Thread Michael Ash
On Wed, May 6, 2009 at 3:13 AM, Martin F. Carianni wrote: > Hello, i'm having some trouble with CFRunLoop, and > performSelectorOnMainThread. I've a CFFTP client (with a latter COCOA > implementation to interface with the GUI-class) which needs to pass a > directory listing array to the GUI. But w

Re: KVC array proxy objects

2009-05-06 Thread Aaron Braunstein
Ashley, I don't know how I could have been so dense. I had read that section at least a dozen times, but somehow it never sank in. I was so fixated on getting alternative methods of accessing ordered collections that I'd skipped over the fact that by definition 'alternative' means "will

Cancel NSThread - cocoa/mysql database search...

2009-05-06 Thread Sparta
Hi Friends, I am working on cocoa ­ MySQL application that connects to the MySQL database and retrieves the records. I run the search in a NSThread. I wish to cancel the search if needed, as the searching of the desired data takes 15-20 minutes due to the bigger size of database. Please suggest s

Re: Vector Graphic Dock Icon?

2009-05-06 Thread Jean-Daniel Dupas
Le 6 mai 09 à 16:44, Chris Idou a écrit : Is it possible to use a vector graphic as a dock icon? The Apple doco seems to encourage using vector graphics, but I can't find it documented what format it would expect. I tried a PDF but that didn't seem to work. What do you mean by "Try" a

Re: instantiateNibWithOwner: fails due to "mutated while enumerated" [SOLVED]

2009-05-06 Thread Philip White
Many thanks! I don't know how I got this far without ever putting a breakpoint on objc_exception_throw... -Philip Hey Philip - Have you tried running with a breakpoint on objc_exception_throw? Looking at the backtrace when you hit the exception could shed some light on what is happening

Vector Graphic Dock Icon?

2009-05-06 Thread Chris Idou
Is it possible to use a vector graphic as a dock icon? The Apple doco seems to encourage using vector graphics, but I can't find it documented what format it would expect. I tried a PDF but that didn't seem to work. Enjoy a better web experience. Upgrade to the new Internet Explorer 8

Re: NSTextView delegate methods in NSTextView subclass.

2009-05-06 Thread Keary Suska
On May 6, 2009, at 3:35 AM, Тимофей Даньшин wrote: I have subclassed NSTextView and I am using that subclass as a field editor for an NSTextField. On certain events in the field editor, i need to take certain actions again in the field editor, and as of now i have to use delegate methods in

Tab stops in a UITableView

2009-05-06 Thread Eric E. Dolecki
I would like to display high scores in a UITableView. I'd like to do this without using custom cells and instead use \t for cheap columns... So I have things like so: @"1000\tEric" for each row. However, I'd like to be able to set that first tab stop to something that is over far enough to where al

Re: A tree data structure?

2009-05-06 Thread Uli Kusterer
On 06.05.2009, at 10:24, Andreas Grosam wrote: Luckily, I don't need such a beast. ;) I just need a graph, a hierarchical data container - no search tree. An NSDictionary with an NSArray under the key @"children" should do the trick. Cheers, -- Uli Kusterer "The Witnesses of TeachText

Re: Crashing resetting or releasing an NSManagedObjectContext [SOLVED]

2009-05-06 Thread Daniel Kennett
*Sigh* All this effort, and it turns out to be a one-line fix. Obviously. [NSManagedObjectContext -setRetainsRegisteredObjects:YES] Calling that on the context solves all the problems I was having, and everything works perfectly now! Thanks, -- Daniel ___ dan...@

Re: NSDistantObject exception when server trying to access registered clients using DO

2009-05-06 Thread Ken Thomases
Hi Kiran, You keep posting this same query over and over. If you're not getting any answers (beyond my earlier attempts, which admittedly went nowhere), it isn't because people didn't see the question; it's because people don't know the answer. What you are asking is pretty deep into the

NSDistantObject exception when server trying to access registered clients using DO

2009-05-06 Thread Kiran Kumar S
I am developing a client/server application using distributed objects. I developed server and in that i vended an object to be accessible by clients.In the client side i am getting the vended object, and getting required info from server.Every thing works fine. Until now my client ask serve

Re: FTP Client Framework

2009-05-06 Thread Ammar Ibrahim
How to you establish a plain old FTP connection, and authenticate then start issuing commands? I'm using version 1.2 On Tue, May 5, 2009 at 6:32 PM, Jason Todd Slack-Moehrle < mailingli...@mailnewsrss.com> wrote: > > Hi Ammar, > > I use the connection kit all the time, what are your questions? >

NSTextView delegate methods in NSTextView subclass.

2009-05-06 Thread Тимофей Даньшин
Hello. I have subclassed NSTextView and I am using that subclass as a field editor for an NSTextField. On certain events in the field editor, i need to take certain actions again in the field editor, and as of now i have to use delegate methods in the TextField's delegate to call methods i

Re: UITextField not sending messages to delegate

2009-05-06 Thread Alexander Spohr
April, Am 05.05.2009 um 23:46 schrieb Development: I have a UITextfield that I have set the delegate for. I have a default keyboard and when you hit the send key (I've set the return to send) nothing happens. I have the - (void)textFieldDone: (id)sender method implemented What documentati

Re: NSManagedObjectContext -insertObject: Cancels Prior Deletion -- BUT!

2009-05-06 Thread Alexander Spohr
* now entering guessing-land * The MOC knows the objects is deleted. If you try to refetch it, the MOC has to clear all attributes because it does not exist anymore (in the MOCs view of the database). Is the primary key still the same? If it is not null now as well... * exit guessing-land *

Re: How to align a custom view in a toolbar ???

2009-05-06 Thread jonat...@mugginsoft.com
Try inserting an NSToolbarFlexibleSpaceItemIdentifier item into the tool bar before your custom view. On 6 May 2009, at 04:30, Anders Lassen wrote: Hi, I am working on a program where I plan to put a mode selector in the upper right corner. I hope to implement this using a toolbar and a

Re: A tree data structure?

2009-05-06 Thread Andreas Grosam
On May 5, 2009, at 7:19 PM, WT wrote: On May 5, 2009, at 5:52 PM, Graham Cox wrote: On 06/05/2009, at 1:28 AM, Andreas Grosam wrote: Please don't underestimate the effort to "just roll your own". Nor overestimate it ;-) Bear in mind that a simple tree can be implemented using multiple i

  1   2   >