Re: Guidance for Cocoa's steep learning curve

2008-05-17 Thread Michael Ash
On Fri, May 16, 2008 at 10:57 PM, john darnell [EMAIL PROTECTED] wrote: And, what I hear from this august crowd is a consensus that the references are difficult to understand, but necessarily so--that they ought to be that way. That's not really it. It's not that they should be difficult to

Keyboard Layout

2008-05-17 Thread randomalious
Hello, I'm not sure if this is the right list for this question, but I couldn't find where else to ask, I hope it's ok. Mac OS X v10.5 has this feature that when RTL keyboard layouts are selected, the I-beam cursor adds a 'direction indicator' that tells the user to which direction the cursor

Re: Guidance for Cocoa's steep learning curve

2008-05-17 Thread Torsten Curdt
Imagine picking up a dictionary for a foreign language you don't speak That is a very good analogy. For my situation I would take it even a step further analogy Let's say I am fluent in Italian and Spanish already. I've even had one year of French in school. I am bored to death

Re: Guidance for Cocoa's steep learning curve

2008-05-17 Thread Torsten Curdt
I agree with this, and I think a lot of people end up getting stuck at this intermediate stage. Apple has a great dictionary and they have decent My name is Bob material. They have little quality material in the middle. This is where the books fill in. Personally speaking I spent a lot of time at

Learning Curve/Documentation Challenge/Recommendation

2008-05-17 Thread Jason Stephenson
I came at Cocoa and Objective-C after years of programming experience with C, C++, Java, Perl, etc., etc. (My resume, for the curious: http://www.sigio.com/~jason/resume.html .) I found two books to be very helpful at getting me up to speed on Objective-C and Cocoa. These books respectively

Re: Dynamic message typing problem

2008-05-17 Thread Julius Guzy
On 17 May 2008, at 0:58, Bill Bumgarner wrote: BTW: Nice paintings. Thanks I post the complete solution as an example and to check that I'm not running close to the wind by using a dummy class definition. The code gets no compiler warnings. You don't need the dummy class. I'd do

Re: Storing PDF selection

2008-05-17 Thread Laurent Cerveau
On May 16, 2008, at 9:40 PM, John Calhoun wrote: On May 15, 2008, at 11:43 PM, Laurent Cerveau wrote: If I have a PDF View , select part of it and get the currentSelection, showing it tells something like Page index = 2, Range = (0, 21] However I do not see where I could get the range of the

Re: Dynamic message typing problem

2008-05-17 Thread Michael Vannorsdel
The difficulty is methods in ObjC are dispatched messages rather than hardcoded functions so going from call to method execution has some hidden intermediate steps. And there can be more than one method with the same name from different classes/protocols. This is one of the pillars to

Re: Basic info about outlets

2008-05-17 Thread John Love
Thanks, Erik ... the behind the scenes explanation was exactly what I needed ... will take lots of time to absorb it. One last thing ... an administrative thing, of sorts ... is there a means of replying to, e.g., this Basic info about outlets, without going to my email; i.e., using this Web Site

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-17 Thread colo
I do not know enough yet. BUT ! I just did get the new Cocoa Book from Hillgrass Amazon. I found the tool F-Script here. It lets you nearly instatly get something working. I think something like the Hillgrass book should be ported to F-Script. As example in the tut for core image F-Script it gives

Re: PlotIconRefInContext doesn't work

2008-05-17 Thread Michael Vannorsdel
I'm thinking the window might be redrawing itself right after your own drawing and erasing it. You could try disabling the window's auto displaying and flush the window buffer after your draw to determine if this is the case. I don't know where you're doing the drawing to know if it's

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-17 Thread Steve Weller
On May 17, 2008, at 7:19 AM, Hamish Allan wrote: On Sat, May 17, 2008 at 3:03 PM, colo [EMAIL PROTECTED] wrote: F-Script [...] gives you the code to Create a window from scratch and logically place the buttons on the window by coordinates. That kind of knowing how to make a window without IB

Re: PlotIconRefInContext doesn't work

2008-05-17 Thread Michael Babin
On May 17, 2008, at 10:06 AM, Michael Vannorsdel wrote: I'm thinking the window might be redrawing itself right after your own drawing and erasing it. You could try disabling the window's auto displaying and flush the window buffer after your draw to determine if this is the case. I

Multi-storage Core Data

2008-05-17 Thread Rob Napier
I'm trying to build a Core Data app for which some data is user-provided and some data is shipped with the program. Consider a travel itinerary program for instance where the user has a trip from airport A to airport B. If the program includes data about the airports themselves, that shouldn't be

Re: Storing PDF selection

2008-05-17 Thread Antonio Nunes
On May 17, 2008, at 2:02 PM, Laurent Cerveau wrote: On May 16, 2008, at 9:11 AM, Antonio Nunes wrote: You ask the page for a selection for the range you provide, and assign that to PDFView's current selection: [somePDFView setCurrentSelection:[yourRememberedPage

Re: Filter Multidimensional Array?

2008-05-17 Thread Keary Suska
on 5/16/08 7:40 PM, [EMAIL PROTECTED] purportedly said: I have created a multidimensional array by creating 3 NSArray's (call them childArray1, childArray2, childArray3) and them adding them to one NSArray (call it parentArray). I am using predicate to search out the array which finds the

Re: Multi-storage Core Data

2008-05-17 Thread Keary Suska
on 5/17/08 10:27 AM, [EMAIL PROTECTED] purportedly said: I'm trying to build a Core Data app for which some data is user-provided and some data is shipped with the program. Consider a travel itinerary program for instance where the user has a trip from airport A to airport B. If the program

Re: Storing PDF selection

2008-05-17 Thread Laurent Cerveau
On May 17, 2008, at 6:57 PM, Antonio Nunes wrote: I would suggest you try to verify why John's suggestion fails, as one would expect it to work. Alternatively try this: Untested: 1. Ask for the bounds of the selection 2. Get the string of the selection 3. Get the string of the page 4. Use

Re: NSURLRequest : Unable to Quit App after Syn call to Server.

2008-05-17 Thread Dominik Pich
// --- // 4) Convert Synchronous Data into Human-Readable String (Unicode 8) format: NSString *serverDataString = [[[NSString alloc] initWithData:serverData encoding:NSUTF8StringEncoding] retain]; This is an extra retain. [[soapResponse

Re: QTKitPlayer and IB 3.0

2008-05-17 Thread Nick Zitzmann
On May 17, 2008, at 8:51 AM, Wolf wrote: I tried this in Tiger (IB 2.5.6) and it works as advertised. However, in Leopard (IB 3.0), it doesn't. Here, the QTMovieView is only a black box, no controls show up, setting the movie source via the inspector does not work (It let's me choose the

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-17 Thread Scott Ellsworth
On Sat, May 17, 2008 at 8:09 AM, Steve Weller [EMAIL PROTECTED] wrote: On May 17, 2008, at 7:19 AM, Hamish Allan wrote: On Sat, May 17, 2008 at 3:03 PM, colo [EMAIL PROTECTED] wrote: F-Script [...] gives you the code to Create a window from scratch and logically place the buttons on the

Re: Multi-storage Core Data

2008-05-17 Thread Jim Correia
On May 17, 2008, at 3:00 PM, Keary Suska wrote: on 5/17/08 10:27 AM, [EMAIL PROTECTED] purportedly said: I'm trying to build a Core Data app for which some data is user- provided and some data is shipped with the program. Consider a travel itinerary program for instance where the user has a

Re: Multi-storage Core Data

2008-05-17 Thread David Wilson
On Sat, May 17, 2008 at 12:27 PM, Rob Napier [EMAIL PROTECTED] wrote: I understand the basic idea of using Fetched Properties and how to create them. What I'm not clear on is how to define a fetched property in one store against objects in another store, or how to tie multiple stores together

Re: Set view in bottom right corner of NSTableView

2008-05-17 Thread [EMAIL PROTECTED]
The PlacardScrollView subclass at http://cocoa.karelia.com/AppKit_Classes/PlacardScrollView__.m demonstrates this technique well. On 16 May 2008, at 18:15, Kyle Sluder wrote: On Fri, May 16, 2008 at 10:49 AM, Stéphane [EMAIL PROTECTED] wrote: This might not be that easily possible as the

what does -[NSView convertRect:toView:] do with nil view?

2008-05-17 Thread Adam R. Maxwell
The API documentation for -[NSView convertRect:toView:] reads identically to the documentation for -[NSView convertRect:fromView:] when a nil parameter is passed for the view: If aView is nil, this method instead converts from window base coordinates. Otherwise, both aView and the receiver

Re: The challenge for Cocoa's on-line documentation

2008-05-17 Thread Johnny Lundy
I never had any problem with a language's documentation since 1970 with the IBM 360 Reference Manual. That is, until I came across Apple's documentation of Cocoa. I have never been so frustrated in my life. - Everything is defined in terms of something else. - Interface Builder User Guide

Re: PlotIconRefInContext doesn't work

2008-05-17 Thread Mike
Michael Babin wrote: On May 17, 2008, at 10:06 AM, Michael Vannorsdel wrote: I'm thinking the window might be redrawing itself right after your own drawing and erasing it. You could try disabling the window's auto displaying and flush the window buffer after your draw to determine if this

Re: The challenge for Cocoa's on-line documentation

2008-05-17 Thread Jeff LaMarche
On May 17, 2008, at 4:16 PM, Johnny Lundy wrote: I never had any problem with a language's documentation since 1970 with the IBM 360 Reference Manual. That is, until I came across Apple's documentation of Cocoa. I have never been so frustrated in my life. snip The usual pattern for a User

Re: Cocoa: How do I send/receive XML within a HTTP connect?

2008-05-17 Thread Jens Alfke
On 17 May '08, at 1:08 AM, Matt Burnett wrote: http://www.google.com/search?hl=ensafe=offclient=safarirls=en-usq=soap+site%3Adeveloper.apple.combtnG=Search On May 16, 2008, at 2:20 PM, Jens Alfke wrote: and since Apple won't let Google index their online docs, there's no way around it.

Re: what does -[NSView convertRect:toView:] do with nil view?

2008-05-17 Thread Jens Alfke
On 17 May '08, at 1:15 PM, Adam R. Maxwell wrote: If aView is nil, this method instead converts from window base coordinates. Otherwise, both aView and the receiver must belong to the same NSWindow object. I think that should read ...converts *to* window base coordinates. In all the

Re: [SOLVED] PlotIconRefInContext doesn't work

2008-05-17 Thread Adam R. Maxwell
On May 17, 2008, at 2:15 PM, Mike wrote: I solved the problem using the IconFamily library: http://iconfamily.sourceforge.net/ IMO, that's killing a mosquito with a shotgun :). It just astounds me there is no support for icons in Cocoa. You can use -[NSImage initWithIconRef:] if you

Re: The challenge for Cocoa's on-line documentation

2008-05-17 Thread Gary L. Wade
Johnny Lundy wrote: Try looking at the documentation for NSDatePicker if you want to see how NOT to write documentation. Uh, are you talking about THIS web page? http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDatePicker_Class/Reference/Reference.html I

Re: Learning Curve/Documentation Challenge/Recommendation

2008-05-17 Thread Hamish Allan
On Sat, May 17, 2008 at 4:09 PM, Steve Weller [EMAIL PROTECTED] wrote: He's quite happy to walk across the floor, but knowing how the floor is constructed adds enormously to his confidence of doing so. Don't forget this is an unfamiliar building, a type of which he has not encountered before.

Re: The challenge for Cocoa's on-line documentation

2008-05-17 Thread Uli Kusterer
Am 17.05.2008 um 23:42 schrieb Gary L. Wade: I haven't ever used this class, but from just looking it over quickly, it seems like it's pretty easy to figure everything out. If you have a problem, just click on the links (e.g., NSDatePickerStyle). While I think the docs aren't as bad as

NSLevelIndicator

2008-05-17 Thread Philip Bridson
Hi there, I have an NSLevelIndicator in a utility window that does the standard stuff, but I have just noticed that if I click on the indicator I can manually select the level. I have read the chapter about indicators but cannot find info about how to disable this functionality. Can any

Re: [SOLVED] PlotIconRefInContext doesn't work

2008-05-17 Thread Michael Vannorsdel
Well you didn't present the secret handshake that would open immediate access to such information. Actually, it was probably not brought up earlier as it's kind of an unsaid list etiquette rule exercised by some not to critique someone's choice of APIs unless specifically asked for. Most

Re: NSLevelIndicator

2008-05-17 Thread Michael Vannorsdel
Set its cell as not editable in IB or programatically with [[indicator cell] setEditable:NO]. On May 17, 2008, at 4:41 PM, Philip Bridson wrote: I have an NSLevelIndicator in a utility window that does the standard stuff, but I have just noticed that if I click on the indicator I can

The challenge for Cocoa's on-line documentation

2008-05-17 Thread Klaus Backert
Johnny Lundy wrote: I never had any problem with a language's documentation since 1970 with the IBM 360 Reference Manual. That is, until I came across Apple's documentation of Cocoa. I have never been so frustrated in my life. - Everything is defined in terms of something else. -

Re: NSLevelIndicator

2008-05-17 Thread Adam R. Maxwell
I think the AppKit release notes said it's fixed in 10.5, but on 10.4 you have to use setEnabled:NO in code to make it non-editable. This drove me nuts when I first tried to use NSLevelIndicator. On May 17, 2008, at 3:53 PM, Michael Vannorsdel wrote: Set its cell as not editable in IB or

Fwd: [SOLVED] NSLevelIndicator

2008-05-17 Thread Philip Bridson
Sorry forgot to copy in Cocoa-Dev - Ooops! Phil I looked in IB but it is not available on the version I have for Indicators - though it is available for other cells. I am using version 2.5.3 as I do not have an intel mac yet or Mac OS X 10.5 - they are first on my shopping list when I

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-17 Thread Uli Kusterer
Am 15.05.2008 um 11:24 schrieb Apparao Mulpuri: 2008-05-15 14:45:33.469 MyCocoaApp[554:10b] NSExceptionHandler has recorded the following exception: NSInternalInconsistencyException -- -[NSNextStepFrame(0x12e0d0) The last time I got an internal inconsistency exception was when I was

Re: NSLevelIndicator

2008-05-17 Thread Jon Hess
Hey Philip - I believe you can control this behavior with the editable property of the control. From my phone - Jon Hess On May 17, 2008, at 3:41 PM, Philip Bridson [EMAIL PROTECTED] wrote: Hi there, I have an NSLevelIndicator in a utility window that does the standard stuff, but I