Re: Can core data save to a remote file?

2008-03-14 Thread Ben Lachman
On Mar 14, 2008, at 2:02 AM, Kyle Sluder wrote: On Fri, Mar 14, 2008 at 1:34 AM, mmalc crawford <[EMAIL PROTECTED]> wrote: The canonical description is, "it's an object graph management and persistence framework". It is not in and of itself an object store, and persistence is only one of i

Re: Can core data save to a remote file?

2008-03-14 Thread Steve Steinitz
Kyle Sluder wrote: On 13/3/08, [EMAIL PROTECTED] wrote: Core Data does not support simultaneous access to a store. With a bit of fussing, tweaking, brute force and tears its working OK for me. Knock on wood. Four machines access (only two of them heavily) a little Thecus network disk stri

Re: How to make a Panel like in Mail?

2008-03-14 Thread Jim Puls
On Mar 12, 2008, at 9:45 AM, Thomas Wickl wrote: Hello, I´m new to Cocoa and I really need a hint in UI Design. How can I create this Panel like it is shown in a lot of Application like Mail? http://www.spongedpics.com/upload/WH1205339930W47d8071ae5a64-Panel.jpg And also how do they make th

Re: How to make a Panel like in Mail?

2008-03-14 Thread Laurent Cerveau
Hi Thomas I think this is simply a customized NSOutlineView embedded in an NSSplitView and you should certainly start around this. In Leopard you have the option to make NSSplitView with "no size" separator that should helpt to get you the final look and feel laurent On Mar 12, 2008, at

Re: Can core data save to a remote file?

2008-03-14 Thread Kyle Sluder
On Fri, Mar 14, 2008 at 3:07 AM, Ben Lachman <[EMAIL PROTECTED]> wrote: > You can in fact persistently store files without managing them as a > really nifty easy to use, well performing, bindings enabled, undo- > able object graph. Its called a filesystem. But most of us don't > think they're

Re: Custom View drawn twice?

2008-03-14 Thread Ben Lachman
I think I finally solved this while chatting with Wil Shipley earlier this evening. Wil mentioned sometimes needing to display from the opaque ancestor which is basically what I was trying to do with the code Uli questioned. The way I was doing it was only partially successful at best. G

Re: Can core data save to a remote file?

2008-03-14 Thread Chris Hanson
On Mar 14, 2008, at 12:12 AM, Steve Steinitz wrote: Core Data does not support simultaneous access to a store. With a bit of fussing, tweaking, brute force and tears its working OK for me. Knock on wood. Four machines access (only two of them heavily) a little Thecus network disk striped

CGContext Drawn Squished

2008-03-14 Thread Bridger Maxwell
Hey, New to Quartz drawing, and am still hazy on some of the concepts involved. I use: _cgContext = CGBitmapContextCreate(NULL, frame.size.width, frame.size.height, 8, 6 * frame.size.width, colorSpace, kCGImageAlphaPremultipliedFirst); To make a context to draw to. I do some drawing stuff. Late

Order of resulting selector invocations from performSelector

2008-03-14 Thread Stuart Malin
If I have my code issue multiple performSelectorOnMainThread:someSelector :waitUntilDone:NO is there any guarantee about the resulting order of execution? (please note that I passed in NO for waitUntilDone) That is, if for the same object, if performSelectoronMainThread is executed twi

CustomView Help ...

2008-03-14 Thread Drafts
Hi, I have implemented a custom view with drag and drop capability. When the viwe is idle, the background is a subtle gray gradient, and when files are being dragged over it turns to a nice blue gradient. I do this in drawRect using a BOOL variable which gets updated in each of the drag operat

Re: CustomView Help ...

2008-03-14 Thread Kyle Sluder
On 14 Mar 2008 10:57:42 +, <[EMAIL PROTECTED]> wrote: > Hi, > > I have implemented a custom view with drag and drop capability. When the > viwe is idle, the background is a subtle gray gradient, and when files are > being dragged over it turns to a nice blue gradient. I do this in drawRect

Re: CustomView Help ...

2008-03-14 Thread Mic Pringle
Hi, I just dragged the label icon from the palette in IB onto my custom view ? Thanks -Mic On Mar 14 2008, Kyle Sluder wrote: On 14 Mar 2008 10:57:42 +, <[EMAIL PROTECTED]> wrote: Hi, I have implemented a custom view with drag and drop capability. When the viwe is idle, the backgroun

Re: What's the trick to eliminating 'halos' on buttons?

2008-03-14 Thread RICKY SHARP
On Thursday, March 13, 2008, at 11:11PM, "Dave Hersey" <[EMAIL PROTECTED]> wrote: >Set the control's focus ring to "none" in IB. Please don't do that as this will not make your app fully accessible. >On Mar 13, 2008, at 11:56 PM, Todd Blanchard wrote: > >> I've got this pane with a bunch of ch

Re: CustomView Help ...

2008-03-14 Thread Kyle Sluder
On 14 Mar 2008 11:07:55 +, Mic Pringle <[EMAIL PROTECTED]> wrote: > I just dragged the label icon from the palette in IB onto my custom view ? Ditch the NSTextField that you're currently using (that's what the "label" is) and do the drawing yourself. AppKit does not support overlapping views

Re: CustomView Help ...

2008-03-14 Thread Mic Pringle
Hi Kyle, Thanks for the tip-off with the docs, will defo look into this. Although having scanned through them, I cannot see how you set the font, size, color etc or how to use -sizeWithAttributes to keep it centered ? Is there an example you know of that I can look at ? Thanks -Mic On Mar

CoreAnimation: rendering error 500

2008-03-14 Thread Pierre Bernard
Hi! I have just started playing around with CoreAnimation. All seems to work as expected. The console however fills with the message "CoreAnimation: rendering error 500". Not of much a help in the way of debugging. What does the message mean? How does one go about debugging CoreAnimation? B

Re: Can core data save to a remote file?

2008-03-14 Thread mmalc crawford
On Mar 13, 2008, at 11:02 PM, Kyle Sluder wrote: On Fri, Mar 14, 2008 at 1:34 AM, mmalc crawford <[EMAIL PROTECTED]> wrote: The canonical description is, "it's an object graph management and persistence framework". It is not in and of itself an object store, and persistence is only one of it

Re: Custom View drawn twice?

2008-03-14 Thread Uli Kusterer
On 14.03.2008, at 09:11, Ben Lachman wrote: I think I finally solved this while chatting with Wil Shipley earlier this evening. Wil mentioned sometimes needing to display from the opaque ancestor which is basically what I was trying to do with the code Uli questioned. The way I was doing i

Re: Custom View drawn twice?

2008-03-14 Thread Uli Kusterer
On 14.03.2008, at 09:11, Ben Lachman wrote: I think I finally solved this while chatting with Wil Shipley earlier this evening. Wil mentioned sometimes needing to display from the opaque ancestor which is basically what I was trying to do with the code Uli questioned. The way I was doing i

Re: Custom View drawn twice?

2008-03-14 Thread Uli Kusterer
On 14.03.2008, at 13:11, Uli Kusterer wrote: On 14.03.2008, at 09:11, Ben Lachman wrote: I think I finally solved this while chatting with Wil Shipley earlier this evening. Wil mentioned sometimes needing to display from the opaque ancestor which is basically what I was trying to do with t

Re: Custom View drawn twice?

2008-03-14 Thread Jean-Daniel Dupas
Le 14 mars 08 à 13:54, Uli Kusterer a écrit : On 14.03.2008, at 13:11, Uli Kusterer wrote: On 14.03.2008, at 09:11, Ben Lachman wrote: I think I finally solved this while chatting with Wil Shipley earlier this evening. Wil mentioned sometimes needing to display from the opaque ancestor wh

export unit tests results

2008-03-14 Thread Pascal Augustin
Hi everyone, I wonder if anyone knows how to export the results of unit tests made with OCUnit in a text file. Thanks, ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Mail - check email

2008-03-14 Thread Cocoa
I am new to programming. I studied basic C language, and recently I read the Objective-C Tutorial and Cocoa Fundamental Guide , but i am still confused with how do I connect my the codes with other applications on the mac such as Mail.app. I am planing to write a plug-in for Mail.app. Are t

Re: Order of resulting selector invocations from performSelector

2008-03-14 Thread glenn andreas
On Mar 14, 2008, at 3:52 AM, Stuart Malin wrote: If I have my code issue multiple performSelectorOnMainThread:someSelector :waitUntilDone:NO is there any guarantee about the resulting order of execution? (please note that I passed in NO for waitUntilDone) If there's nothing in the d

Re: Mail - check email

2008-03-14 Thread Jeff LaMarche
You may be confusing two separate things. Mail plug-ins are not applications, and they have to use a private, undocumented API. It is not something encouraged by Apple, nor is it a great choice for a Cocoa program. If you're serious, there are several plug-ins with the source code available

Re: Mail - check email

2008-03-14 Thread Jeff LaMarche
On Mar 14, 2008, at 10:25 AM, Jeff LaMarche wrote: nor is it a great choice for a Cocoa program Whoops, what I meant to say here, of course, was it's not a great idea for a FIRST Cocoa program... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Order of resulting selector invocations from performSelector

2008-03-14 Thread Hamish Allan
On Fri, Mar 14, 2008 at 8:52 AM, Stuart Malin <[EMAIL PROTECTED]> wrote: > If I have my code issue multiple > performSelectorOnMainThread:someSelector :waitUntilDone:NO > > is there any guarantee about the resulting order of execution? > (please note that I passed in NO for waitUntilDone

Re: CoreAnimation: rendering error 500

2008-03-14 Thread John Harper
It means that CA is detecting an OpenGL error while rendering, there's not much you can do to debug it unfortunately. The best thing would be to file a radar with a sample app showing the issue, thanks, John On Mar 14, 2008, at 4:32 AM, Pierre Bernard wrote: Hi! I have just start

Re: File upload with NSURLRequest fails

2008-03-14 Thread Tom Harrington
On Fri, Mar 14, 2008 at 12:43 AM, Ben Lachman <[EMAIL PROTECTED]> wrote: > I do this with a perl script on the back end. My experience was that > its was more cajoling the perl script into working that the PHP side, > but that may be because I'm not much of a perl wizard (maybe only > level 8 o

Re: Accessing memory out of set memory limit

2008-03-14 Thread Jens Alfke
On 13 Mar '08, at 11:18 PM, Mayank Varshney wrote: I am trying to set memory limit using setrlimit function function using resources RLIMIT_AS , RLIMIT_RSS , RLIMIT_DATA seperately . I also tried to Neither cocoa-dev nor carbon-dev is the right place to discuss this. Try the darwin-userle

Re: Can core data save to a remote file?

2008-03-14 Thread Jens Alfke
On 13 Mar '08, at 10:10 PM, Kyle Sluder wrote: POST isn't usable for this: "The action performed by the POST method might not result in a resource that can be identified by a URI. Not generically usable, no, but some web-apps have protocols that use POST to save a resource in a PUT-like way

modal sheet not understood

2008-03-14 Thread Hans van der Meer
I thought to implement an open panel on my main window and expected it to wait for the dismissal of the sheet. It seems that actually the events are out of the inendedorder. What is wrong with the following code? Why didn't it wait for the sheet being closed? // Put up the sheet for and ret

Re: newb problem- Currency Converter app problem- Can't Add ConverterController Class to Nib

2008-03-14 Thread mmalc crawford
On Mar 13, 2008, at 9:17 PM, Edward Scholl wrote: Working through the Currency Converter tutorial, and I get to the "Add the ConverterController Class to Your Nib File" (http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/06Controller/chapter_6_section_6.html ) part, where

Re: modal sheet not understood

2008-03-14 Thread Stéphane
On Mar 14, 2008, at 5:16 PM, Hans van der Meer wrote: I thought to implement an open panel on my main window and expected it to wait for the dismissal of the sheet. It seems that actually the events are out of the inendedorder. What is wrong with the following code? Why didn't it wait for

Odd issue causing IKImageBrowserView to crash?

2008-03-14 Thread Scott.D.R
Greetings everyone. I am writing an application using IKImageBrowserView. I wrote a NSMutableArray object to hold the source images which reaches about 500-700 regularly in number. First, I used some code to generate the images. Then I told the IKImagebrowserView to reload the datasource, my

Re: modal sheet not understood

2008-03-14 Thread Rob Napier
If it waited for the sheet to close, then the rest of your application would hang with the beach ball. Most of your program runs in a single thread. If your method does not terminate, very little else in your application will work. Just because you're modal for one window doesn't mean you want the

Re: What's the trick to eliminating 'halos' on buttons?

2008-03-14 Thread Dave Hersey
I'm not saying it's a great idea, but there's a reason that the option and setViewFocusRingType: is available. Sometimes it does make sense to use them. I have no clue if it makes sense in Todd's case or not. Besides, the focus ring type only determines the drawing style of the focus indica

Re: Custom View drawn twice?

2008-03-14 Thread Ben Lachman
On Mar 14, 2008, at 8:54 AM, Uli Kusterer wrote: Oh great, so this message *did* get through even though I canceled and it didn't get saved to my outbox... Anyway, of course your "toggle" prevents the endless loop, but it's still an ugly hack. Not to mention a bad way to name such a var

Re: sorting large tables

2008-03-14 Thread Daniel Child
Great suggestion. Thanks. On Mar 13, 2008, at 5:00 PM, Ben Trumbull wrote: One nice thing about sorting, is that this is easy to do: merge sort. You can break up the problem as much as you want, and use any handy sort function, and then merge the pieces together. Algorithms for merging are

Re: sorting large tables

2008-03-14 Thread Daniel Child
Actually, since I've parsed the data successfully, I suppose I could store it and reopen in Core Data. Since I am new to Cocoa and have a limited programming background, I thought I should keep things basic,. Will give it a try as well (once I've tried the merge sort). But since I will have

Re: QCView openGLContext

2008-03-14 Thread David Duncan
On Mar 13, 2008, at 4:53 PM, Lorenzo wrote: If I comment this line below [[qcView openGLContext] flushBuffer]; my app launches and runs well, but of course I can't see the QCView contents properly. I have seen that this API is available in 10.5 and later. Anyway my compiler doesn't protes

Re: What's the trick to eliminating 'halos' on buttons?

2008-03-14 Thread Hamish Allan
On Fri, Mar 14, 2008 at 4:51 PM, Dave Hersey <[EMAIL PROTECTED]> wrote: > I'm not saying it's a great idea, but there's a reason that the option > and setViewFocusRingType: is available. I'd say it's fine if you're drawing your own alternative focus ring, but otherwise, it breaks accessibility.

Creating Custom Views in Interface Builder

2008-03-14 Thread Michael Fey
Hello List! I am trying to create a custom view class using Interface Builder that I can then instantiate within my code as many times as needed. In this particular case I have a control that I've created that contains a progress bar, two text fields, two buttons, and an image view. I t

Re: Creating Custom Views in Interface Builder

2008-03-14 Thread Jacob Lukas
Whoops meant to hit "Reply All" On Mar 14, 2008, at 14:33, Michael Fey wrote: Hello List! I am trying to create a custom view class using Interface Builder that I can then instantiate within my code as many times as needed. In this particular case I have a control that I've created that

Re: Creating Custom Views in Interface Builder

2008-03-14 Thread varun
Hi Michael! It seems to me that you should be able to follow the QuickStart for building an InterfaceBuilder plug-in to create your custom NSView: http://developer.apple.com/documentation/DeveloperTools/Conceptual/IBPlugInGuide/Plug-inQuickStart/chapter_3_section_1.html#//apple_ref/doc/uid/TP4000

Re: Creating Custom Views in Interface Builder

2008-03-14 Thread Jeff LaMarche
I wrote an article for MacTech a while back on doing this... it may be a little outdated by now since it was written when Tiger was new, but may still contain some useful info: http://www.mactech.com/articles/mactech/Vol.21/21.10/Palettes/index.html On Mar 14, 2008, at 2:46 PM, [EMAIL PROTEC

Re: What's the trick to eliminating 'halos' on buttons?

2008-03-14 Thread Uli Kusterer
On 14.03.2008, at 17:51, Dave Hersey wrote: I'm not saying it's a great idea, but there's a reason that the option and setViewFocusRingType: is available. As long as some other focus indication is present, it's fine to turn off the focus ring, IMNSHO. For listboxes, the list selection itsel

Re: QCView openGLContext

2008-03-14 Thread Lorenzo
David, In my application I have several openGLViews running in turn their drawRect method at 60 FPS. So in the drawRect method of each openGLView I set the current context to the openGLView context. These openGLViews have nothing to do with the QCView. Well, when I call [qcView reanderAtTime... I

Re: Creating Custom Views in Interface Builder

2008-03-14 Thread Ricky Sharp
On Mar 14, 2008, at 1:51 PM, Jeff LaMarche wrote: I wrote an article for MacTech a while back on doing this... it may be a little outdated by now since it was written when Tiger was new, but may still contain some useful info: http://www.mactech.com/articles/mactech/Vol.21/21.10/Palettes/i

Re: QCView openGLContext

2008-03-14 Thread David Duncan
On Mar 14, 2008, at 12:56 PM, Lorenzo wrote: I will file a bug. I run XCode 3.0 - Xcode IDE: 921.0 - Xcode Core: 921.0 - ToolSupport: 893.0 Please file it, its always good to know what will help our developers :). Actually I have adopted the solution posted by Sam, here in the list. I r

Re: QCView openGLContext

2008-03-14 Thread Lorenzo
Thanks David, > As for the garbage, it is likely that your QC Compositions are missing > a Clear Patch. Adding one should prevent the garbage. I already clear the color buffer with glClear. If you meant something different, please let me know. NSOpenGLContext*cContext = [NSOpenGLContext c

Custom NSCell selection and click issues

2008-03-14 Thread Justin Williams
Greetings, I have built a custom NSCell that displays the isCompleted and title of the CalTask items on a user's Mac. I've got two issues with the cell that i can't seem to figure out. 1. When a user selects one of the rows, the shadow on a row one or two above will disappear. It look's like it

styling NSOutlineView

2008-03-14 Thread Nick Rogers
Hi, I have gone through http://katidev.com/blog/?p=36 which shows how to show an Icon and two rows of text in an row of NSTableView. And it has been done by sub-classing NSCell. I want exactly the same thing in an NSOutlineView (i.e. an Icon and two rows of text in an row of NSOutlineView.

The 'New' item in the File menu is not enabled

2008-03-14 Thread Allison Newman
Hi, As a newbie to Cocoa, I'm working through the Hillegass book, and specifically the RaiseMan app. I've just implemented the code to save and load doculents, but for some reason, I'm not able to create a new document, or open an existing document (these options are disbaled in the File

Re: The 'New' item in the File menu is not enabled

2008-03-14 Thread Kyle Sluder
On Fri, Mar 14, 2008 at 6:06 PM, Allison Newman <[EMAIL PROTECTED]> wrote: > As a newbie to Cocoa, I'm working through the Hillegass book, and > specifically the RaiseMan app. I've just implemented the code to save > and load doculents, but for some reason, I'm not able to create a new > document,

Re: The 'New' item in the File menu is not enabled

2008-03-14 Thread Allison Newman
Oh, yup, that works. Thanks Kyle. Le 14 mars 08 à 23:17, Kyle Sluder a écrit : On Fri, Mar 14, 2008 at 6:06 PM, Allison Newman <[EMAIL PROTECTED]> wrote: As a newbie to Cocoa, I'm working through the Hillegass book, and specifically the RaiseMan app. I've just implemented the code to save

NSWrapper Plus Plain text files

2008-03-14 Thread Lincoln Green
Hi, I am using loadFileWrapperRepresentation to implement a RTF/RTFD reader. My code for RTF and RTFD support works, but I can't figure out how to load in .txt files. the basic flow of the reader is, determine the file type, set a NSAttributedString to a certain value depending on the file

OT: Cocoa classes in Vancouver, Canada

2008-03-14 Thread Pavel Kapinos
Hi, I've been developing with Cocoa frameworks for a while now, and want to see if there is an interest to learn how to develop apps on Mac OS X and for iPhone. So, if I can get at least 3 people signed up, I will start classes. Thanks. ___ Cocoa

Return in SOAP webservice call

2008-03-14 Thread Niklas Saers
Hi guys, I've made a little webservice test, using NuSOAP I've made a webservice that returns a string that is a 9k base64 encoded file. I've used different soap testers and the method works great. When I call it through Cocoa, it's called fine, all the parameters are passed correctly and

OT: Cocoa classes in Vancouver, Canada (Resend)

2008-03-14 Thread Pavel Kapinos
Hi, I've been developing with Cocoa frameworks for a while now, and want to see if there is an interest to learn how to develop apps on Mac OS X and for iPhone. So, if I can get at least 3 people signed up, I will start classes. Please reply to this post on CL: http://vancouver.craigslist.

Re: Best Way To Lookup From a Huge Table

2008-03-14 Thread Chris Hanson
On Mar 13, 2008, at 2:11 PM, Karan Lyons wrote: What's the best way to lookup something from a huge table? I'm trying to write a piece of code that checks weather data given a zipcode. But I first need to change that zipcode into another format in order for it to work with the onlin

Re: Best Way To Lookup From a Huge Table

2008-03-14 Thread John Stiles
Frankly, if it's just a table of 100,000 NSNumbers pointing to 8-character strings, CoreData seems a little excessive to me. The table can live in RAM and it shouldn't cause any problem. Chris Hanson wrote: On Mar 13, 2008, at 2:11 PM, Karan Lyons wrote: What's the best way to lookup so

Re: export unit tests results

2008-03-14 Thread Chris Hanson
On Mar 14, 2008, at 6:31 AM, Pascal Augustin wrote: I wonder if anyone knows how to export the results of unit tests made with OCUnit in a text file. You can redirect stderr to get the results, if you're doing a command- line build. You can also set up your own SenTestObserver subclass to

Re: Best Way To Lookup From a Huge Table

2008-03-14 Thread Chris Hanson
On Mar 14, 2008, at 5:55 PM, John Stiles wrote: Frankly, if it's just a table of 100,000 NSNumbers pointing to 8- character strings, CoreData seems a little excessive to me. The table can live in RAM and it shouldn't cause any problem. Why does it seem excessive? Once you understand its con

previous value of NSControl

2008-03-14 Thread norio ota
Hi, I feel that Carbon gave us the chance to get its previous value right after the value is changed using Carbon Event. How do I get the previous value in Cocoa? I set an action to a NSDatePicker and I'd like to know if an input value , especially year component, is different from the year

Re: Best Way To Lookup From a Huge Table

2008-03-14 Thread Ben Trumbull
Frankly, if it's just a table of 100,000 NSNumbers pointing to 8-character strings, CoreData seems a little excessive to me. :) The file system is excellent at something this straight forward. The table can live in RAM and it shouldn't cause any problem. Well if we're really serious, one cou

Re: Best Way To Lookup From a Huge Table

2008-03-14 Thread Scott Ribe
41,000 is nowhere near "huge". My advice is do it the simplest way, and if it's too slow, then consider optimizations. Of course, for me, the "simplest" way would probably be std::map< int, string >, but that's just my personal taste. I suspect using Cocoa's version of a hash would work just fine.

Re: Creating Custom Views in Interface Builder

2008-03-14 Thread Rob Keniger
On 15/03/2008, at 4:46 AM, [EMAIL PROTECTED] wrote: It seems to me that you should be able to follow the QuickStart for building an InterfaceBuilder plug-in to create your custom NSView: There's a trap for young players in the docs: watch out if you are creating a GC-only app. Classes inst

Re: newb problem- Currency Converter app problem- Can't Add ConverterController Class to Nib

2008-03-14 Thread Edward Scholl
On Fri, Mar 14, 2008 at 9:21 AM, mmalc crawford <[EMAIL PROTECTED]> wrote: > > > It's not clear where you're finding an instruction to "click open to > instantiate"? > > The steps given are: > > 1 Choose File > Read Class Files. > > 2 Select the ConverterController.h file and click Open. Ye

Re: previous value of NSControl

2008-03-14 Thread Jens Alfke
On 14 Mar '08, at 6:20 PM, norio ota wrote: I set an action to a NSDatePicker and I'd like to know if an input value , especially year component, is different from the year of its previous date in the action method, without having a placeholder for the previous value. Use key-value obser