[MODERATOR] Re: WWDC ticket needed

2008-05-16 Thread Scott Anguish
It is one thing to sell your ticket (when your ticket allows it) HOWEVER, posting ebay ads here for your tickets is not acceptable. On May 15, 2008, at 4:45 PM, Hal Mueller wrote: eBay item 220234875066 is at $1525 already, and not closing for another 5 days! scott moderator

Re: NSDictionaryController with NSTableView and sorting of numeric data

2008-05-16 Thread Shawn Erickson
On Thu, May 15, 2008 at 10:43 PM, Kyle Sluder [EMAIL PROTECTED] wrote: On Thu, May 15, 2008 at 5:30 PM, [EMAIL PROTECTED] wrote: It would seem that NSDictionaryController keys have to be strings. Yes. It is very common that, despite NSDictionary accepting any object as a key, you must use

Re: [MODERATOR] Re: WWDC ticket needed

2008-05-16 Thread Hal Mueller
Just for the record--not mine, no idea who the seller is. Mine ain't for sale! Hal ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Storing PDF selection

2008-05-16 Thread Laurent Cerveau
Hi Is there a way to store serialize and store PDFselection ? 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 PDFSelection and later recreate a

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Ilan Volow
The NSTableView is based on the MVC paradigm which has existed for quite some time. A method you implement gets called to return the value for each cell (more or less). So if you have a table with forty cells, then at least 40 times the method will get called. After I started looking at it

Re: Query with PDF Page display in PDFview

2008-05-16 Thread Antonio Nunes
On May 16, 2008, at 7:39 AM, Amrit Majumdar wrote: Consider a multipage Page PDF document. When the user launches the application All the pages of the document will be displayed in two rows. The pages will be resized and row one will display 5 pages,row two will display 5 pages. The user

Re: Storing PDF selection

2008-05-16 Thread Antonio Nunes
On May 16, 2008, at 7:43 AM, 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 PDFSelection and later recreate a selection

Workaround for _NSCFURLProtocolBridge bug in AppKit?

2008-05-16 Thread Dex Morgan
Hello guys, My app uses a custom NSURLProtocol class. However I've found it's bugged when used with Garbage Collector activated. It seems to be a know issues (look herE: http://www.cocoabuilder.com/archive/message/cocoa/2007/12/17/195056) since december 2007 but no one at apple has fixed it

string to html.

2008-05-16 Thread vinitha
hi, I've to convert text or image to its corresponding html code. i've done setContentType: @text/html; setContentTransferEncoding:None; setCharset: @us-ascii NSDictionary*attr = [NSDictionary dictionaryWithObject:NSHTMLTextDocumentType forKey:NSDocumentTypeDocumentAttribute];

Re: NSDictionaryController with NSTableView and sorting of numeric data

2008-05-16 Thread [EMAIL PROTECTED]
Thanks For the reply Kyle On 16 May 2008, at 06:43, Kyle Sluder wrote: On Thu, May 15, 2008 at 5:30 PM, [EMAIL PROTECTED] wrote: It would seem that NSDictionaryController keys have to be strings. Yes. It is very common that, despite NSDictionary accepting any object as a key, you must use

Re: NSDictionaryController with NSTableView and sorting of numeric data

2008-05-16 Thread [EMAIL PROTECTED]
Thanks for the reply Shawn One of the big attractions of the bindings technology is that the sorting behaviour is automatic and normally pretty satisfactory. But I agree that in this case manually manipulating the sort descriptors could be a good solution. Jonathan On 16 May 2008, at

Re: Problem with NSFileManger directoryContentsAtPath

2008-05-16 Thread Jean-Daniel Dupas
Yes, they all display it in a different way, and why is it a problem ? What does it prevent you to do? Le 16 mai 08 à 07:02, JanakiRam a écrit : When i perform ls command it shows file name as Icon?. When i perform cp command tab it shows the file name as Icon^M. Why Terminal does show

RE: Guidance for Cocoa's steep learning curve

2008-05-16 Thread john darnell
I don't mean to be mean, but I agree with Joseph; most Apple documentation is really, really poor. *No, that's not correct.* The documentation is extensive, and comprehensive, but unless you already know what you are reading about, it might as well have been written in Farsi (no offense meant to

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

2008-05-16 Thread fclee
On 05/15/2008 17:56 Jens Alfke wrote .. ...You should call [NSApp terminate: self] instead. I did that; and repeated it. I'm running in debug mode. The program works till I QUIT via [NSApp terminate:self]. Now I'm getting (via gdb console {Running as a Cocoa App on my MacBookPro): Running…

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread I. Savant
I have found this to be true on most every product's documentation; not just X Code. It is easily understood after five years of experience. The beginner struggles with the concepts, the locutions, the native phrases that the experienced programmer understands. I feel the need to chime in

Set view in bottom right corner of NSTableView

2008-05-16 Thread [EMAIL PROTECTED]
Hello List I have been using NSTableView -setCornerView: to provide additional drag thumb image views for tables embedded in splitviews. Has anyone found it possible to do the same thing in the bottom right hand corner of a table as opposed to the top? Obviously there is no NSTableView

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Michael Ash
On Fri, May 16, 2008 at 9:30 PM, john darnell [EMAIL PROTECTED] wrote: I don't mean to be mean, but I agree with Joseph; most Apple documentation is really, really poor. *No, that's not correct.* The documentation is extensive, and comprehensive, but unless you already know what you are

Re: Problem with NSFileManger directoryContentsAtPath

2008-05-16 Thread Hamish Allan
On Fri, May 16, 2008 at 6:02 AM, JanakiRam [EMAIL PROTECTED] wrote: When i perform ls command it shows file name as Icon?. When i perform cp command tab it shows the file name as Icon^M. Why Terminal does show different names for the same file. Because the filename contains a non-printing

RE: Guidance for Cocoa's steep learning curve

2008-05-16 Thread john darnell
Sigh. Your attitude reminds me of a conversation I once had with a fellow programmer. When I was encouraging her to add more documentation to the code, she replied, jokingly, If it was hard for me to write, then it should be hard for them to read. The sad thing is that you are not joking...

kCAOnOrderOut animation not working

2008-05-16 Thread Dion Crannitch
I'm using -defaultActionForKey: to add an animation when a sublayer is removed from its parent. My animation is never used and instead the sublayer fades out (which I assume is the default). But if I add the animation to kCAOnOrderIn it works as I expect. My sublayer class's defaultActionForKey:

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread I. Savant
Sigh. Your attitude reminds me of a conversation I once had with a fellow programmer. When I was encouraging her to add more documentation to the code, she replied, jokingly, If it was hard for me to write, then it should be hard for them to read. The sad thing is that you are not

Re: Problem with NSFileManger directoryContentsAtPath

2008-05-16 Thread JanakiRam
When i give this filename as part of rsync source file ( using --files-from ) , rsync is treating this filename as 2 different file names , because rsync expects each filen name separated by \r. Hence my rsync command is failing JanakiRam. On Fri, May 16, 2008 at 5:42 PM, Jean-Daniel Dupas

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Jeff LaMarche
On May 16, 2008, at 9:30 AM, john darnell wrote: I don't mean to be mean, but I agree with Joseph; most Apple documentation is really, really poor. *No, that's not correct.* The documentation is extensive, and comprehensive, but unless you already know what you are reading about, it might as

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Michael Ash
On Fri, May 16, 2008 at 10:19 PM, john darnell [EMAIL PROTECTED] wrote: Sigh. Your attitude reminds me of a conversation I once had with a fellow programmer. When I was encouraging her to add more documentation to the code, she replied, jokingly, If it was hard for me to write, then it

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

2008-05-16 Thread fclee
I needed to modify the default 'GET' Response of the NSURLRequest to a 'POST'... So I changed 'NSURLRequest' to a 'NSMutableURLRequest' to modify the HTTPMethod: // --- // 2) Create the request. NSMutableURLRequest *theRequest=[NSMutableURLRequest

Re: Set view in bottom right corner of NSTableView

2008-05-16 Thread Stéphane
On May 16, 2008, at 3:58 PM, [EMAIL PROTECTED] wrote: Hello List I have been using NSTableView -setCornerView: to provide additional drag thumb image views for tables embedded in splitviews. Has anyone found it possible to do the same thing in the bottom right hand corner of a table as

Re: Setting default application for URL scheme

2008-05-16 Thread Matthew Gertner
This works like a charm except for one thing. After I register my handler, it gets requests to load a new URL as expected the app is already running. If the app isn't running, I see the dock slide over slightly like it's about to open a new bundle, then it slides back and the app doesn't open. If

[JOB] A little Cocoa work...

2008-05-16 Thread MacDev Dude
Hi, I have a bit of Cocoa work available that a someone from this list may be interested in. It'd be a very limited number of hours - a couple weekends maybe, just making some fairly straight-forward modifications to existing Cocoa apps to which the source and clear instructions will be provided.

Re: Dynamic message typing problem

2008-05-16 Thread Julius Guzy
On Fri, 16 May 2008 10:12:24 -0600 Michael Vannorsdel wrote I've tried the code here and it works as expected. Could you give more detail on your build setup? Like what arch you're building for, This is running as stand alone app. on Mac Pro 10.5.2 how you're executing the program, From

Re: Set view in bottom right corner of NSTableView

2008-05-16 Thread Kyle Sluder
On Fri, May 16, 2008 at 10:49 AM, Stéphane [EMAIL PROTECTED] wrote: This might not be that easily possible as the positions of the views inside the scrollview are recomputed quite often and your bottom corner view would be ignored by this code. So this would require subclassing some code in

Re: [MODERATOR] Re: WWDC ticket needed

2008-05-16 Thread Alex Kac
I got the impression it wasn't his ticket, he just saw that on eBay and posted it as a wow type thing. On May 16, 2008, at 1:05 AM, [EMAIL PROTECTED] wrote: Date: Fri, 16 May 2008 02:03:04 -0400 From: Scott Anguish [EMAIL PROTECTED] Subject: [MODERATOR] Re: WWDC ticket needed To: Hal Mueller

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Andy Lee
On May 16, 2008, at 10:50 AM, Jens Alfke wrote: but there are still a lot of concepts and details to learn, and many times their topology does not reduce to a directed acyclic graph (i.e. you can't present them in order without forward references.) Jens, I was going to bring up the concept

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

2008-05-16 Thread fclee
Hello, I'm having trouble determining the best path to follow. Here's the schema in a nutshell: [Mac XML/SOAP - Server] .. where an HTTP Post connection is created and a post/reply is synchronously generated. I want to use Cocoa to do the equivalent in Java: StreamConnection

Re: Dynamic message typing problem

2008-05-16 Thread Scott Ribe
- (void) callPrintConstFloat:(id)pId { [pId printFloat:98.76]; // pId is object of class AnonTargetClass } This is probably compiled in file which does not include the declaration of class AnonTargetClass, so the compiler assumes that printFloat takes an int, casts

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

2008-05-16 Thread Jens Alfke
On 16 May '08, at 10:59 AM, [EMAIL PROTECTED] wrote: Do I use NSURLConnection to actually TRANSMIT RECEIVE XML data to the Server like this? serverData = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:serverResponse

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

2008-05-16 Thread fclee
I should add... Does the NSMutableURLRequest actually send the XML data to the server? Via the NSMutableURLRequest class, I can alter the HTTP Body, etc. However, I need to send a SOAP/XML envelope receive a XML response. I don't see where in the NSNetworking docs that I can send a SOAP/XML to

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Scott Ribe
Forward references are what the concepts docs are for, but for some reason, they don't seem to be serving that purpose for some people. I'm not sure why. I get the feeling that some people never notice the Companion Guides section at the top of the class references. They're right there at the

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

2008-05-16 Thread fclee
On 05/16/2008 11:18 Jens Alfke wrote .. On 16 May '08, at 10:59 AM, [EMAIL PROTECTED] wrote: Do I use NSURLConnection to actually TRANSMIT RECEIVE XML data to the Server like this? serverData = [NSURLConnection sendSynchronousRequest:theRequest

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

2008-05-16 Thread stephen joseph butler
On Fri, May 16, 2008 at 1:11 PM, [EMAIL PROTECTED] wrote: I should add... Does the NSMutableURLRequest actually send the XML data to the server? Via the NSMutableURLRequest class, I can alter the HTTP Body, etc. However, I need to send a SOAP/XML envelope receive a XML response. I don't

Re: Set view in bottom right corner of NSTableView

2008-05-16 Thread [EMAIL PROTECTED]
Once again Kyle, thanks. This looks like just the ticket. 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 positions of the views inside the scrollview are recomputed quite often and

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

2008-05-16 Thread fclee
Ahhh! Okay... I'm trying to envision how this would work. I'm essentially working with a 'black box' (the Server). The server is waiting for SOAP/XML data shall respond accordingly. So you're saying that I should do something like this: .. NSData *soapData = SOAP/XML in NSData format. ..

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

2008-05-16 Thread stephen joseph butler
On Fri, May 16, 2008 at 1:53 PM, [EMAIL PROTECTED] wrote: Ahhh! Okay... I'm trying to envision how this would work. I'm essentially working with a 'black box' (the Server). The server is waiting for SOAP/XML data shall respond accordingly. So you're saying that I should do something

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

2008-05-16 Thread Jens Alfke
On 16 May '08, at 11:11 AM, [EMAIL PROTECTED] wrote: Via the NSMutableURLRequest class, I can alter the HTTP Body, etc. However, I need to send a SOAP/XML envelope receive a XML response. NSURLRequest etc. have nothing to do with the type of content you send. They don't care whether it's

Re: Storing PDF selection

2008-05-16 Thread John Calhoun
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 PDFSelection and later recreate a selection

Re: Guidance for Cocoa's steep learning curve

2008-05-16 Thread Shawn Erickson
On Fri, May 16, 2008 at 11:22 AM, Scott Ribe [EMAIL PROTECTED] wrote: Forward references are what the concepts docs are for, but for some reason, they don't seem to be serving that purpose for some people. I'm not sure why. I get the feeling that some people never notice the Companion Guides

Re: Problem binding to recreated NSCollectionView

2008-05-16 Thread David Carlisle
On May 16, 2008, at 11:03 AM, I. Savant wrote: On Fri, May 16, 2008 at 12:55 PM, David Carlisle [EMAIL PROTECTED] wrote: FWIW, I got my very own collection view (MyVOCV) working nicely with NSArrayController, all except for animations, and I just pre ordered the animation book from Amazon.

Re: Working through a problem...

2008-05-16 Thread Jeff LaMarche
On May 16, 2008, at 4:55 PM, john darnell wrote: I am attempting to follow these instructions, but whenever I do, when the cursor hovers over the table view control on the dialog the label that shows is NSTableColumn, and in the info panel the connected button remains grayed out and the

Re: Working through a problem...

2008-05-16 Thread Paul Goracke
john darnell wrote: I am attempting to follow these instructions, but whenever I do, when the cursor hovers over the table view control on the dialog the label that shows is NSTableColumn, and in the info panel the connected button remains grayed out and the message tableView must be of type

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

2008-05-16 Thread Jens Alfke
On 16 May '08, at 1:36 PM, [EMAIL PROTECTED] wrote: I got this to work! ... NSError **myError; NSHTTPURLResponse **serverResponse; ... self.smsXMLString = [NSString stringWithContentsOfFile:smsXMLPath encoding:NSUTF8StringEncoding error:myError]; If that's not crashing,

Re: Dynamic message typing problem

2008-05-16 Thread Bill Bumgarner
On May 16, 2008, at 2:17 PM, Julius Guzy wrote: On 16 May 2008, at 19:23 Scott Ribe [EMAIL PROTECTED] wrote - (void) callPrintConstFloat:(id)pId { [pId printFloat:98.76]; // pId is object of class AnonTargetClass } This is probably compiled in file which does not

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

2008-05-16 Thread Andy Lee
On May 16, 2008, at 5:05 PM, Erik Buck wrote: [Re-post from http://www.cocoabuilder.com/archive/message/cocoa/2007/8/20/188026 ] That was well worth reposting. This may partly answer my question about why people don't notice or study the concepts docs. Maybe we're too used to clicking on

Core Data, SQL stores, and predicate restrictions

2008-05-16 Thread Sean McBride
Hi all, After reading the docs and archives, it is clear to me now that with Core Data's SQL store one is more limited in the types of predicates one can use with fetches. What I can't find is a list of what I can and can't do. The best I found was [the] SQL store, on the other hand, compiles

Re: Dynamic message typing problem

2008-05-16 Thread Scott Ribe
...if the method name is unique, the types of the parameters are determined. Not unless a declaration is visible. Your reasoning is that there's no other printFloat: so the compiler should know, but this is still (sort of) C--if you don't include a declaration that tells the compiler what the

Re: Dynamic message typing problem

2008-05-16 Thread Michael Vannorsdel
Just to add, it's generally important to include compiler warnings with your problem description as they provide valuable clues. The compiler issues warnings when something doesn't look right, make sense, or lacking information. Usually the compiler will make guesses and assumptions as

Re: Core Data, SQL stores, and predicate restrictions

2008-05-16 Thread Bill Dudney
HI Sean, One example would be if you have a method that calculates a value. That value would not be in the DB so the compiled predicate (if it would even compile) would not work because there is not column corresponding to your calc'd value. I think this is worth filing a bug against the

Re: Dynamic message typing problem

2008-05-16 Thread Scott Ribe
Just to add, it's generally important to include compiler warnings with your problem description... Yo, any list moms listening? This is a really good suggestion that seems like something that should perhaps be incorporated into monthly email summarizing the list how to ask questions. --

Re: Dynamic message typing problem

2008-05-16 Thread I. Savant
Yo, any list moms listening? This is a really good suggestion that seems like something that should perhaps be incorporated into monthly email summarizing the list how to ask questions. Yeah, it's been awhile since Scott Anguish's monthly mailing, hasn't it? Lots of traffic recently that

Re: Dynamic message typing problem

2008-05-16 Thread Julius Guzy
Thanks to all who replied to my pleas for help. I took Bill and Scott's suggestions to heart and produced the answer I needed: Dynamic Typing which allows me to avoid circularity etc. I post the complete solution as an example and to check that I'm not running close to the wind by using a

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

2008-05-16 Thread Kevin Grant
Wikis like CocoaDev can be nice for filling these gaps. I find it helpful to see not only the articles, which are usually practical, but also visitor comments. For example, someone can easily add a statement to a 4-year-old page, pointing out a new approach that works better. Or, a debate can

Re: Dynamic message typing problem

2008-05-16 Thread Bill Bumgarner
On May 16, 2008, at 4:51 PM, Julius Guzy wrote: Thanks to all who replied to my pleas for help. I took Bill and Scott's suggestions to heart and produced the answer I needed: Dynamic Typing which allows me to avoid circularity etc. Good. BTW: Nice paintings. I post the complete solution

Re: Dynamic message typing problem

2008-05-16 Thread Jens Alfke
On 16 May '08, at 2:34 PM, Bill Bumgarner wrote: An almost universal rule of Mac OS X programming: If you see a compiler warning, you are doing something wrong. Amen. One of the first things I do to any Xcode project I work on is turn on Treat warnings as errors in the build settings. For

Re: Dynamic message typing problem

2008-05-16 Thread I. Savant
Amen. One of the first things I do to any Xcode project I work on is turn on Treat warnings as errors in the build settings. For some reason almost all of Obj-C's type-checking errors appear as warnings, and you ignore those at your peril. VERY good advice. A little self-discipline is

Filter Multidimensional Array?

2008-05-16 Thread Chris Purcell
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 item I'm searching for. However, how I return the name

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

2008-05-16 Thread Gustavo Eulalio
Very good post, Erik. Here's what I feel now about this issue. I too am having difficulties to learn Cocoa. The problem might be that I'm new to both Cocoa and Objective C. I've seen some tutorials that try to teach them at the same time. I'm afraid they might be a little too shallow, exploring