Re: Layer Backed Views and CoreAnimation neither animate nor stay in place

2008-06-29 Thread Shripada Hebbar
Hi Chilton You better do the addition of subviews and setting up the core animation stuff in the view's awakeFromNib rather than its initWithFrame: method. Since the view is getting loaded from the nib, chances are that your settings within initWithFrame get overridden by the settings in t

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Jens Alfke
On 29 Jun '08, at 9:47 PM, Chris Purcell wrote: Thank you for the reply. I am a bit of a Cocoa newbie and I'm having trouble using the objectValueForTableColumn:. My NSTableView is only one column, but I would like to display all attributes of each key. You should have one column per a

[MEET] CocoaHeads Mac Developer Meetings

2008-06-29 Thread Stephen Zyszkiewicz
Greetings, We have a few new chapters! CocoaHeads is an international Mac programmer's group. We specialize in Cocoa, but everything Mac programming related is welcome. Why Should I Attend? Meeting other Mac OS X developers in person is both fun and immensely useful. There's no better way to l

Re: NSPopUpButton setPreferredEdge

2008-06-29 Thread Francisco Tolmasky
Thanks Peter, that makes sense, although if that is the case they should really just deprecate the method. Francisco On Jun 26, 2008, at 7:30 PM, Peter Ammon wrote: On Jun 26, 2008, at 5:49 PM, Francisco Tolmasky wrote: I'm attempting to make a pop up button that pops its menu to the lef

Re: CALayer and View Scaling

2008-06-29 Thread Scott Anguish
On Jun 29, 2008, at 11:25 PM, Gordon Apple wrote: BTW, I tried unsuccessfully to observe the clip view's bounds to trigger code to resize the CALayers. Why can't I observe it? I finally set an observer on the scale factor in SKTZoomingScrollView. because the bounds value of views ar

Re: viewing method calls

2008-06-29 Thread Nick Zitzmann
On Jun 29, 2008, at 3:25 PM, John Murphy wrote: How do I view the messages (method calls) that are sent during the loading of an application? You can do this using a profiler, such as Shark. Nick Zitzmann ___ Coc

Ithaca, NY CocoaHeads Now Forming

2008-06-29 Thread Bill Garrison
I'm organizing an Ithaca, NY chapter of CocoaHeads to connect up with other developers in the area. More details at - Bill ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Chris Purcell
Thank you for the reply. I am a bit of a Cocoa newbie and I'm having trouble using the objectValueForTableColumn:. My NSTableView is only one column, but I would like to display all attributes of each key. This is an example of what is outputting when I display a entry of the NSArray: e

Re: Why aren't my bindings firing?

2008-06-29 Thread Hamish Allan
On Mon, Jun 30, 2008 at 5:33 AM, Charles Srstka <[EMAIL PROTECTED]> wrote: > Wait, what? Okay, that contradicts the understanding that I had come to... > so the built-in views establish two-way bindings *without* overriding > bind:toObject:withKeyPath:options:? Great, that puts us back to square o

Re: Why aren't my bindings firing?

2008-06-29 Thread Charles Srstka
On Jun 29, 2008, at 11:30 PM, Hamish Allan wrote: Perhaps NSControls have their own bind:toObject:withKeyPath:options: implementation which simply checks for "value" and effectively binds to "objectValue"? No, classdump confirms that the only bind:toObject:withKeyPath:options: implementation is

Re: Why aren't my bindings firing?

2008-06-29 Thread Hamish Allan
On Sat, Jun 28, 2008 at 4:17 PM, Charles Srstka <[EMAIL PROTECTED]> wrote: > I wouldn't worry about that too much - everything you said seems to jibe > perfectly with what views do - the text field's binding *is* called "value" > and not "stringValue" (that was my bad), and there's no correspondin

Re: CALayer and View Scaling

2008-06-29 Thread Graham Cox
I'm not familiar with SKTZoomingScrollView but I do wonder why its author wrote it that way, when to get zooming you can simply use the actual view's -scaleUnitSquareToSize: method (plus frame computation), and any enclosing clipview/scrollview does the right thing without any work at all.

Anybody here credited in Wall-E?

2008-06-29 Thread Robert Nicholson
In the past I've seen well known Cocoa programmers like Michael B Johnson and Mike Ferris in the Pixar credits. I caught Michael B Johnson's name in the credits but by the time they get to the software developers the list is just too large to follow.

Re: Is this still true?

2008-06-29 Thread Hamish Allan
On Mon, Jun 30, 2008 at 12:37 AM, Scott Anguish <[EMAIL PROTECTED]> wrote: > the controller classes don't return old and new values, that's the part that > isn't implemented. > > your own classes (provided they're written in a KVO compliant manner) will > return both. Unless their properties are

CALayer and View Scaling

2008-06-29 Thread Gordon Apple
Apparently, there is a disconnect between the view's coordinate system context and that of the contained CALayers. I'm using Sketch's SKTZoomingScrollView to set the scale factor of my main drawing view. It works great without CALayers. What is does is it scales the bounds of the containing

Re: Thread safe reference counting

2008-06-29 Thread atebits
Awesome, thanks. I remember reading that page, just completely missed the "Object allocation and retain count functions" note in the list. Loren On Jun 29, 2008, at 5:30 PM, Michael Ash wrote: On Sun, Jun 29, 2008 at 7:12 PM, Chris Suter <[EMAIL PROTECTED]> wrote: On 30/06/2008, at 9:06

Re: Thread safe reference counting

2008-06-29 Thread Michael Ash
On Sun, Jun 29, 2008 at 7:12 PM, Chris Suter <[EMAIL PROTECTED]> wrote: > > On 30/06/2008, at 9:06 AM, atebits wrote: > >> Perhaps I'm blind, but after pouring over every scrap of information I >> could find, I could not find the answer to this question. >> >> Are -retain and -release thread-safe?

Re: Scrolling during zoom

2008-06-29 Thread Graham Cox
Search the docs for -scrollRectToVisible: and -scrollToPoint: G. p.s. since I know you're doing this in DK, also look at DKDrawing's - scrollToRect: method, which you should use. On 30 Jun 2008, at 9:17 am, James Maxwell wrote: Hello All, I've implemented a sort of "time zoom" for a musi

Re: Is this still true?

2008-06-29 Thread Alex Wait
sorry. I didn't see the part in the writeup where it mentiosn NSArrayControler. Still wasn't a bad exercise for me though. On Sun, Jun 29, 2008 at 4:39 PM, Alex Wait <[EMAIL PROTECTED]> wrote: > ah. I see. > > I would still love to know why the apple devs haven't gotten around to do > this yet. :

Re: Is this still true?

2008-06-29 Thread Alex Wait
ah. I see. I would still love to know why the apple devs haven't gotten around to do this yet. :) On Sun, Jun 29, 2008 at 4:37 PM, Scott Anguish <[EMAIL PROTECTED]> wrote: > the controller classes don't return old and new values, that's the part > that isn't implemented. > > your own classes (pr

Re: Is this still true?

2008-06-29 Thread Scott Anguish
the controller classes don't return old and new values, that's the part that isn't implemented. your own classes (provided they're written in a KVO compliant manner) will return both. On Jun 29, 2008, at 7:32 PM, Alex Wait wrote: weird. I tried this: [newPerson addObserver:observe forKe

Re: Is this still true?

2008-06-29 Thread Alex Wait
weird. I tried this: [newPerson addObserver:observe forKeyPath:@"lastName" options:( NSKeyValueObservingOptionOld| NSKeyValueObservingOptionNew) context:NULL]; and below is my method NSLog(@"observing"); //int oldLastName = [change o]; id oldName = [change objectForKey:NSKeyValueCha

Scrolling during zoom

2008-06-29 Thread James Maxwell
Hello All, I've implemented a sort of "time zoom" for a music app I'm working on. Basically, it's just re-positioning objects along a musical staff when I click and drag up/down the screen (like in Live, or Logic... Soundtrack too, I think). However, if I'm in the middle of a score, the c

Re: Thread safe reference counting

2008-06-29 Thread Chris Suter
On 30/06/2008, at 9:06 AM, atebits wrote: Perhaps I'm blind, but after pouring over every scrap of information I could find, I could not find the answer to this question. Are -retain and -release thread-safe? (Perhaps as atomic increments/ decrements internally?) Yes, -retain and -release

Thread safe reference counting

2008-06-29 Thread atebits
Perhaps I'm blind, but after pouring over every scrap of information I could find, I could not find the answer to this question. Are -retain and -release thread-safe? (Perhaps as atomic increments/ decrements internally?) ___ Cocoa-dev mailing lis

Re: NSTextView to replace NSTextList confused

2008-06-29 Thread Nathan Kinsinger
On Jun 29, 2008, at 4:48 PM, Papa-Raboon wrote: This is great, I changed the line that said: myNotes = [theNotes stringValue]; to: myNotes = [theNotes string]; And it worked. I am not sure where abouts in the class reference for NSTextView it states that you should pass it a -string rather tha

Re: NSTextView to replace NSTextList confused

2008-06-29 Thread Papa-Raboon
This is great, I changed the line that said: myNotes = [theNotes stringValue]; to: myNotes = [theNotes string]; And it worked. I am not sure where abouts in the class reference for NSTextView it states that you should pass it a -string rather than a -stringValue but it worked all the same. Brilli

Re: Is this still true?

2008-06-29 Thread Hamish Allan
On Sun, Jun 29, 2008 at 9:48 PM, Alex Wait <[EMAIL PROTECTED]> wrote: > But does the bug it talks about still exist? I'm afraid so. But what I really want to know is, *why* won't it be fixed any time soon? I presume there *is* a reason, otherwise why would mmalc make such a claim? Hamish ___

Re: description and proxy objects

2008-06-29 Thread Torsten Curdt
[[[accountsController selectedObjects] objectAtIndex:0] description]; Ah! [[accountsController selection] valueForKey:@"description"]; Doh! ...of course :) So obvious. Thanks, guys! cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

Re: NSTextView to replace NSTextList confused

2008-06-29 Thread Nathan Kinsinger
On Jun 29, 2008, at 1:58 PM, Papa-Raboon wrote: Hi Kyle and thanks for responding. I am not sure what part of the documentation you refer to when you say cocoa text system but I started reading about NSTextView and NSText and to be honest until I get more familiar with cocoa and everything clic

Re: Unicode in URLs (was "Handling framework exceptions/errors?")

2008-06-29 Thread Stephen J. Butler
On Sun, Jun 29, 2008 at 3:10 PM, David Troy <[EMAIL PROTECTED]> wrote: > I was sort of under the impression that NSURL URLWithString: would deal with > escaping/translating the Kanji characters, but I could see how it might not. > > Is there some method I can use to break the Kanji back out into es

viewing method calls

2008-06-29 Thread John Murphy
How do I view the messages (method calls) that are sent during the loading of an application? ___ 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

Re: Handling framework exceptions/errors?

2008-06-29 Thread Sherm Pendley
2008/6/29 Jim Correia <[EMAIL PROTECTED]>: > On Jun 29, 2008, at 4:17 PM, Sherm Pendley wrote: > >> On Sun, Jun 29, 2008 at 4:00 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: >>> >>> URLs can only contain ASCII >> >> Not true. Have a look at: > > NSURL's initWithString:relativeTo

Is this still true?

2008-06-29 Thread Alex Wait
this page has been frequently linked to as helpful and it is! :) http://homepage.mac.com/mmalc/CocoaExamples/controllers.html But does the bug it talks about still exist? - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)cont

Re: Handling framework exceptions/errors?

2008-06-29 Thread Sherm Pendley
On Sun, Jun 29, 2008 at 12:56 PM, David Troy <[EMAIL PROTECTED]> wrote: > > I have a situation where I am loading arbitray data from network-supplied > URLs. Sometimes the URLs contain Kanji unicode characters. When they do, > my HTTP loading mechanism (which is built around NSURL* frameworks) di

Re: Handling framework exceptions/errors?

2008-06-29 Thread Jim Correia
On Jun 29, 2008, at 4:17 PM, Sherm Pendley wrote: On Sun, Jun 29, 2008 at 4:00 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: Also, what do you mean by a URL containing Kanji characters? I suppose he means one like this: - which works correctly in Safari, btw. Safari is enco

Re: Handling framework exceptions/errors?

2008-06-29 Thread Sherm Pendley
On Sun, Jun 29, 2008 at 4:00 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > Also, what do you mean by a URL containing Kanji characters? I suppose he means one like this: - which works correctly in Safari, btw. > URLs can only contain ASCII Not true. Have a look at:

Unicode in URLs (was "Handling framework exceptions/errors?")

2008-06-29 Thread David Troy
Jens, Thanks for the help. I am being handed a URL as an NSString and am simply forwarding it to the frameworks for processing. A example URL which causes a crash is: http://foo.com/56033713/アイコン用ハング音_normal.jpg (where foo.com is something else) I didn't check to see if [NSURL URLWithStrin

Re: Handling framework exceptions/errors?

2008-06-29 Thread Jens Alfke
On 29 Jun '08, at 9:56 AM, David Troy wrote: I have a situation where I am loading arbitray data from network- supplied URLs. Sometimes the URLs contain Kanji unicode characters. When they do, my HTTP loading mechanism (which is built around NSURL* frameworks) dies with an exception deep

Re: NSTextView to replace NSTextList confused

2008-06-29 Thread Papa-Raboon
Hi Kyle and thanks for responding. I am not sure what part of the documentation you refer to when you say cocoa text system but I started reading about NSTextView and NSText and to be honest until I get more familiar with cocoa and everything clicks into place the documentation seems very confusing

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Jens Alfke
On 29 Jun '08, at 9:39 AM, Chris Purcell wrote: Thank you for the reply. I think right now the simplest would be to convert the cookies array to an array of NSStrings. What would be the easiest way to do this? Keep the array as an array of NSHTTPCookies. But your - objectValueForTableCo

Re: How to converting a Carbon nib to Cocoa?

2008-06-29 Thread Christopher Pavicich
Hi: There is no way to automatically convert a Carbon Interface Builder Document into a Cocoa Interface Builder Document. You are going to need to recreate all of your Carbon dialogues in Cocoa. By hand. --Chris On Jun 29, 2008, at 1:59 AM, Fosse wrote: My Carbon nib contains a lot

objc_exception_throw

2008-06-29 Thread casa
By setting a Breakpoint at objc_exception_throw or [NSException raise] I am able to stop my program when (for example) an out of range exception is thrown. However the call stack trace on the debugger window or the 'bt' command only shows a single line. For example: #0 0x9500d0d7 in objc_e

Re: noob questions regarding KVC accessors for a mutable array property

2008-06-29 Thread Clark Cox
On Sun, Jun 29, 2008 at 8:33 AM, Stuart Malin <[EMAIL PROTECTED]> wrote: > I do have the indexed accessors implemented. I also have an accessor that > returns an array of the objects -- not sure why I did that... force of habit > from other accessors (having a setter -set and a getter -). I > cert

Re: Handling framework exceptions/errors?

2008-06-29 Thread Owen Yamauchi
On Sun, Jun 29, 2008 at 9:56 AM, David Troy <[EMAIL PROTECTED]> wrote: > I have a situation where I am loading arbitray data from network-supplied > URLs. Sometimes the URLs contain Kanji unicode characters. When they do, > my HTTP loading mechanism (which is built around NSURL* frameworks) dies

Re: Clock-like looping

2008-06-29 Thread Sherm Pendley
On Sun, Jun 29, 2008 at 1:39 PM, Daniel Richman <[EMAIL PROTECTED]> wrote: > Sorry, I just realized that won't work for floating point numbers. But you > can check if the number is an integer first, then use the % operand if so. For floating-point modulus, one can use fmod(), fmodl(), or fmodf(),

Re: mutableArrayForKeyValue Question (ignore other email)

2008-06-29 Thread Stuart Malin
On Jun 29, 2008, at 7:05 AM, Scot t Anguish wrote: From: Scott Anguish <[EMAIL PROTECTED]> Subject: Re: mutableArrayForKeyValue Question (ignore other email) To: "Alex Wait" <[EMAIL PROTECTED]> Cc: cocoa-dev Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=US-ASCII; format=flo

Re: Clock-like looping

2008-06-29 Thread Jean-Daniel Dupas
the '%' operator cannot be used with floating point values, but it works well with integer: => (11 + 2) % 12 = 1 Le 29 juin 08 à 19:34, Daniel Richman a écrit : Use double newNumber = oldNumber % 13; This will return your number's remainder when dividing between 13, which could be 0 - 1

Re: Clock-like looping

2008-06-29 Thread Daniel Richman
Sorry, I just realized that won't work for floating point numbers. But you can check if the number is an integer first, then use the % operand if so. Daniel Daniel Richman wrote: Use double newNumber = oldNumber % 13; This will return your number's remainder when dividing between 13, whic

Re: Clock-like looping

2008-06-29 Thread Daniel Richman
Use double newNumber = oldNumber % 13; This will return your number's remainder when dividing between 13, which could be 0 - 12. Daniel Ashley Perrien wrote: Is there a fairly simple way of setting up a clock style looping of numbers? Where 1-12 act normally but 11 + 2 would return 1 and s

Clock-like looping

2008-06-29 Thread Ashley Perrien
Is there a fairly simple way of setting up a clock style looping of numbers? Where 1-12 act normally but 11 + 2 would return 1 and so on. I'm not doing time and would be dealing with ranges from 1 to 96, 77, 120, that type of range. Would also need to be able to handle partial numbers (4.12

Re: Cocoa Text System: How to determine the caret position?

2008-06-29 Thread Mike Ferris
I know that text along a path was done by someone in the past. Basically the strategy was: - let the text system lay out the text on a straight baseline (one long line) - do the glyph drawing on your own along your path Of course, spacing needs to be tightened/loosened depending o

DnD in NSMatrix

2008-06-29 Thread Micha Fuhrmann
Dear all, I'm subclassing NSMatrix to enable DnD in a 10.4 NSBrowser. The dragout is fine, but I'm having trouble registering for drag ins. From my understanding I need to need to call -registerForDraggedTypes: in the NSMatrix's -initWithFrame: subclass method The trouble is I cannot acc

Handling framework exceptions/errors?

2008-06-29 Thread David Troy
Hey folks, I am fairly new to Cocoa development, so bear with me. I have a situation where I am loading arbitray data from network- supplied URLs. Sometimes the URLs contain Kanji unicode characters. When they do, my HTTP loading mechanism (which is built around NSURL* frameworks) dies wi

Re: Methods that return autoreleased objects?

2008-06-29 Thread Adam R. Maxwell
On Jun 29, 2008, at 9:42 AM, Mike Ferris wrote: Best thing to do about the top-level nib "exception" to the rule is to use NSWindowController or NSViewController to do your nib loading. These classes properly take responsibility for top-level objects of the nibs they load and then all you

Re: Methods that return autoreleased objects?

2008-06-29 Thread Mike Ferris
Best thing to do about the top-level nib "exception" to the rule is to use NSWindowController or NSViewController to do your nib loading. These classes properly take responsibility for top-level objects of the nibs they load and then all you have to do is manage the lifetime of the control

Re: Output of NSHTTPCookieStorage to NSTableView

2008-06-29 Thread Chris Purcell
Thank you for the reply. I think right now the simplest would be to convert the cookies array to an array of NSStrings. What would be the easiest way to do this? Thank you! On Jun 28, 2008, at 9:56 PM, Shawn Erickson wrote: On Sat, Jun 28, 2008 at 9:46 PM, Chris Purcell <[EMAIL PROTECTED

Re: Widgets for HUD

2008-06-29 Thread Marcelo Alves
On 27/06/2008, at 16:48, Erik Verbruggen wrote: I know this has been asked before on this list (somewhere earlier this year), but I couldn't find the posting back. So sorry for repeating the question, but I'd like to use the HUD of Leopard and with "fitting" widgets. Somebody mentioned som

Re: noob question regarding proxy object returned by -selection method of NSArrayController

2008-06-29 Thread Ken Thomases
On Jun 29, 2008, at 10:47 AM, Stuart Malin wrote: On Jun 28, 2008, at 11:14 AM, Owen Yamauchi wrote: How about [[controller selection] valueForKey:@"self"]? NSObject has a -self method which just returns the receiver, and since the proxy object must respond to the KVC query as if it were the

Re: noob question regarding proxy object returned by -selection method of NSArrayController

2008-06-29 Thread Stuart Malin
On Jun 29, 2008, at 12:07 AM, Ken Thomases wrote: On Jun 28, 2008, at 12:43 PM, Stuart Malin wrote: I have a button in the GUI that should cause various changes to the person selected in the table. In the method that is the target of the button's action, I need to get the selected Person o

Re: noob questions regarding KVC accessors for a mutable array property

2008-06-29 Thread Stuart Malin
I do have the indexed accessors implemented. I also have an accessor that returns an array of the objects -- not sure why I did that... force of habit from other accessors (having a setter -set and a getter -). I certainly can understand one reason why this wouldn't be good, because should

Re: Methods that return autoreleased objects?

2008-06-29 Thread mmalc crawford
On Jun 29, 2008, at 8:02 AM, Charles Srstka wrote: Yes, but it's not obvious, which is why I thought to point it out since we're discussing the times when you should and shouldn't release objects. The alloc, init, and retain methods are also documented, but that doesn't mean we can't help

[ANN] Amber.framework, shared source repository

2008-06-29 Thread Keith Duncan
I've made my shared source repository public, feel free to have a look at it code.google.com/p/amber-framework It is a general purpose framework, i.e. it doesn't address a specific need; it consists mainly of categories and a handful of classes. There is little in the way of documentation b

Re: Methods that return autoreleased objects?

2008-06-29 Thread Charles Srstka
On Jun 29, 2008, at 1:58 AM, mmalc crawford wrote: On Jun 28, 2008, at 9:59 PM, Charles Srstka wrote: Methods that begin with "alloc" or "new" or contain "copy" will return objects you are responsible for. All other objects returned from methods are taken care of. Well, there is the notab

Re: Widgets for HUD

2008-06-29 Thread Jonathan Dann
On 27 Jun 2008, at 20:48, Erik Verbruggen wrote: I know this has been asked before on this list (somewhere earlier this year), but I couldn't find the posting back. So sorry for repeating the question, but I'd like to use the HUD of Leopard and with "fitting" widgets. Somebody mentioned so

Widgets for HUD

2008-06-29 Thread Erik Verbruggen
I know this has been asked before on this list (somewhere earlier this year), but I couldn't find the posting back. So sorry for repeating the question, but I'd like to use the HUD of Leopard and with "fitting" widgets. Somebody mentioned something on tweaking the look/ colours and somebody

Re: Using isMemberOfClass with a tree of subclass of NSManagedObject

2008-06-29 Thread Yoann GINI
Okey, I've solve the problem ! It's very simple, I've only load the in NSManagedObjectModel the mom file represent the modification base, not the main model... Now I load all mom file and it's work ! Thanks all Le 29 juin 08 à 01:27, Bill Bumgarner a écrit : On Jun 28, 2008, at 1:08 PM,

Re: NSURLConnection vs CF and other ideas

2008-06-29 Thread Alex Kac
Now that's very very nice as well. I actually did read the CFNetwork programming guide and CFHTTP request, but it seemed to me a lot more work for just the progress, but I was going to go that route when I decided to look it up in the mailing list archives. That's what made me ask because i

Re: NSURLConnection vs CF and other ideas

2008-06-29 Thread Alex Kac
Perfect. I was reading about things like subclassing NSInputStream and having to implement methods for which no docs were available on what to implement and things like that. It sounds like its a lot simpler and so that's good. Will do! On Jun 29, 2008, at 8:53 AM, Jens Alfke wrote: On 2

Re: NSURLConnection vs CF and other ideas

2008-06-29 Thread Jens Alfke
On 28 Jun '08, at 6:11 PM, Alex Kac wrote: I've got a working HTTP Post with file upload using NSURLConnection, but I don't seem to see any ways to get progress on the upload beyond the connectionDidFinishLoading: delegate. Is there a better way to be able to get progress info so we can di

Re: XML-RPC Cocoa Parsing

2008-06-29 Thread Jens Alfke
On 28 Jun '08, at 10:24 PM, Rick Langschultz wrote: I am trying to use XML-RPC for my data access on a web server (HTTPS). I wanted to know if parsing the XML-RPC data can be handled using NSXMLDocument and parsing the , , , XML-RPC tags. Sure. It'll parse any sort of valid XML. Also,

Re: Style Question

2008-06-29 Thread Hamish Allan
On Sat, Jun 28, 2008 at 6:15 AM, Alex Wait <[EMAIL PROTECTED]> wrote: > I was meaning to imply that if it was called "FirstName" would setFirstName > still be called? See the first word of Jens' reply. But more importantly, just as Jens says, unask the question :) Hamish

Re: How to deal with a MenuItem with both a binded state property and an action method

2008-06-29 Thread Joan Lluch (casa)
El 28/06/2008, a las 18:44, Keary Suska escribió: 6/28/08 8:54 AM, also sprach [EMAIL PROTECTED]: To sumarize, the problem is that I am not able to change the menuItem state programatically (ie. in myAction) without avoiding the second call to setMenuState. However if the call to myAction com

How to converting a Carbon nib to Cocoa?

2008-06-29 Thread Fosse
My Carbon nib contains a lot of dialogs. I want to make it be used by another cocoa application and don't want to create all those dialogs and econstruct the entire control hierarchy manually in the Interface Builder. I don't care about connections, I'll wire them up myself. I'm just hoping to avo

Re: NSExpression

2008-06-29 Thread Nathan Kinsinger
On Jun 28, 2008, at 11:35 PM, Chris wrote: If anyone has a clue how to use it, I'd be grateful. This was my unsuccessful attempt: NSExpression * ex = [NSExpression expressionForFunction: [NSExpression expressionForConstantValue:@"BAR"] selectorName:@"length" arguments:nil]; NSPredicat

Re: NSExpression

2008-06-29 Thread mmalc crawford
On Jun 28, 2008, at 10:35 PM, Chris wrote: NSExpression * ex = [NSExpression expressionForFunction: [NSExpression expressionForConstantValue:@"BAR"] selectorName:@"length" arguments:nil]; NSPredicate * predicate = [NSCompoundPredicate andPredicateWithSubpredicates:[NSArray arrayWithObject:

Re: NSURLConnection vs CF and other ideas

2008-06-29 Thread Lukhnos D. Liu
On Jun 29, 2008, at 9:11 AM, Alex Kac wrote: I've got a working HTTP Post with file upload using NSURLConnection, but I don't seem to see any ways to get progress on the upload beyond the connectionDidFinishLoading: delegate. Is there a better way to be able to get progress info so we can disp

Re: mutableArrayForKeyValue Question (ignore other email)

2008-06-29 Thread Ken Thomases
On Jun 28, 2008, at 9:42 PM, Alex Wait wrote: I am trying to modify the array controller programmatically and I'm running into problems using mutableArrayForKeyValue I am using this line id proxy = [controller mutableArrayValueForKey:@"Person"]; -mutableArrayValueForKey: is for modifyin

Re: Garbage Collection woes...

2008-06-29 Thread j o a r
On Jun 27, 2008, at 12:31 PM, John Engelhart wrote: Lesson #1: If you have any interest in performance, you must avoid, at all costs, "writing" to a __strong pointer. That's almost like saying: "If you have any interest in performance, you must avoid, at all costs, using a high level l

Re: noob question regarding proxy object returned by -selection method of NSArrayController

2008-06-29 Thread Ken Thomases
On Jun 28, 2008, at 12:43 PM, Stuart Malin wrote: I have a button in the GUI that should cause various changes to the person selected in the table. In the method that is the target of the button's action, I need to get the selected Person object so I can operate on it. I know I could use

Re: Garbage Collection woes...

2008-06-29 Thread mmalc crawford
On Jun 27, 2008, at 12:31 PM, John Engelhart wrote: -(BOOL)doSomething:(id)obj error:(NSError **)error { if(error != NULL) { *error = NULL; } // Make sure we clear the error object } Why are you doing this? It's sort of ambiguous as to what should be returned by the indirect error poin

Re: Why aren't my bindings firing?

2008-06-29 Thread Ken Thomases
On Jun 28, 2008, at 10:17 AM, Charles Srstka wrote: I think what we can all take home from this is that the documentation for bindings needs to be clearer and less self- contradictory on the very basic concept of exactly what Cocoa Bindings *is*. For what it's worth, after sending my previ

Re: mutableArrayForKeyValue Question (ignore other email)

2008-06-29 Thread Scott Anguish
I think there is still some clarification necessary. what exactly are you trying to accomplish, rather than how you are trying to do it? would I be correct to guess that you want to create a new Person object and add it to the array? if so you need to create the object and add it to the a