Re: Crash trying to create Webarchive

2009-01-20 Thread Reza Farhad
The Problem is that the exception is occurring within the Apple call, so there is no way for me to break into it. Also I have tried to catch it locally but it get propagated to uncaught exceptions. Reza Break on objc_exception_throw. Investigate from there... corbin __

Re: Binding of invisible controls: is lazy data loading possible?

2009-01-20 Thread Vitaly Ovchinnikov
Thanks to all, I replaced array of dictionaries with array of custom objects, that hold other objects that are used for binding. And then I implemented lazy evaluation of data exactly when they are necessary. In those "leaf"-objects. Now calculations start exactly when I want to show the data :)

Re: Problem setting up custom toolbar item in IB

2009-01-20 Thread Rob Keniger
On 20/01/2009, at 5:21 PM, Chunk 1978 wrote: not sure if it's related to a problem i've recently solved with custom views: i was trying to display a label "inside" a button, but the label wouldn't show when built, only the button. for some sketchy reason i had to place the label under the but

Re: Crash trying to create Webarchive

2009-01-20 Thread Matt Gough
On 20 Jan 2009, at 09:10, Reza Farhad wrote: The Problem is that the exception is occurring within the Apple call, so there is no way for me to break into it. Also I have tried to catch it locally but it get propagated to uncaught exceptions. Reza Break on objc_exception_throw. Investig

Resizing NSImage to look good

2009-01-20 Thread Aaron Scott
I am trying resize some images - more specifically scaling images down. Basically, I am pulling images from AAC files, and displaying them in an NSImageView. However, when the image is resized to fit the NSImageView (128x128) it looks terrible. Yet somehow Apple seem to make the same thing

Re: Problem setting up custom toolbar item in IB

2009-01-20 Thread Jonathan Hess
Hey Chunk - These are two distinct problems. The problem you are describing is that the z-order of the subviews of a custom view are reversed at runtime. Jon Hess On Jan 19, 2009, at 11:21 PM, Chunk 1978 wrote: not sure if it's related to a problem i've recently solved with custom views:

Re: Resizing NSImage to look good

2009-01-20 Thread Graham Cox
On 20 Jan 2009, at 9:46 pm, Aaron Scott wrote: Basically, I am pulling images from AAC files, and displaying them in an NSImageView. However, when the image is resized to fit the NSImageView (128x128) it looks terrible. Yet somehow Apple seem to make the same thing look great in iTunes.

Re: NSTextView and automaticLinkDetection

2009-01-20 Thread Mike Abdullah
You'll probably want to use Adium's AutoHyperlinks framework to achieve this. Much more flexible. http://trac.adiumx.com/wiki/AutoHyperlinksFramework Mike. On 20 Jan 2009, at 06:58, Steve Cronin wrote: Folks; NSTextView has an attribute 'automaticLinkDetection' that can be set in IB or wi

Re: Custom Cocoa Component/Control

2009-01-20 Thread Mike Abdullah
Trying to recreate this much behaviour yourself is almost certainly a bad idea. Instead, look into NSBrowser or NSCollectionView. Mike. On 20 Jan 2009, at 03:16, Paul Franz wrote: I know this is a noob question but I do not know where to look. I come for a Java background. So I know what to

Re: Crash trying to create Webarchive

2009-01-20 Thread Reza Farhad
Matt I tried what you suggested. I can now catch the exception, but it also propagates up to my uncaught exception handling delegate, which I am surprised. Now how bad is it to ignore "NSInvalidArgumentException" , the system just logs these and I am only getting these issues when I have

autocompletion window disappears

2009-01-20 Thread Markus Guhe
Hi all, In my application I get the behaviour that autocompletion windows disappear after a short delay (1 sec or so). This happens with all completions: custom completions in an NSTokenField and an NSTextField as well as the default mechanism in an unmodified NSTextView. Am I missing som

'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow'

2009-01-20 Thread Arjun SM
Hi all, I have created a custom Menulet which i have made it as a launchAgent . The problem i am facing is when i try to install it. I want my Menulet to be launched for all the Users who have logged in on the machine. I works fine for all the Users, but if i install my Menulet as root .. my ap

Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Dave
Hi All, I would like to something similar which is to display the Icons of iPods. I can get the .icns files for the iPhone and iPod Touch from: /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/ But where to locate the icons for iPods? Thanks a lot All the Best Dave On 11 Ja

Re: Memory allocation issues with NSObject and NSString

2009-01-20 Thread glenn andreas
On Jan 19, 2009, at 11:04 PM, Michael Ash wrote: I maintain that NSObject -init is guaranteed to do nothing, and changing this fact would seriously break the API contract. I read it that it does nothing to initialize the object (since the object has nothing that needs to be initialized).

Re: CoreData entity mutability

2009-01-20 Thread Antoine Maillard
Thanks guys, I finally chose to duplicate the object.But I think that would be a pretty cool feature to be able to "mutate" an object. For instance, if you have an ancestor A which has a small set of properties and which evolves to a more sofisticated object (a descendant), there is no use copying

Re: autocompletion window disappears

2009-01-20 Thread Ross Carter
On Jan 20, 2009, at 6:28 AM, Markus Guhe wrote: Hi all, In my application I get the behaviour that autocompletion windows disappear after a short delay (1 sec or so). This happens with all completions: custom completions in an NSTokenField and an NSTextField as well as the default mechan

Re: Search Fields, Array Controllers and Multiple NIBs

2009-01-20 Thread Keary Suska
On Jan 19, 2009, at 9:58 PM, Brad Gibbs wrote: I have a Core Data app with a container view controller and multiple subviews, each with a view controller and a separate NIB. Subview switching is done via a segmented control. The subviews each display the same data, but in different ways

Re: autocompletion window disappears

2009-01-20 Thread Jim Correia
On Jan 20, 2009, at 6:28 AM, Markus Guhe wrote: In my application I get the behaviour that autocompletion windows disappear after a short delay (1 sec or so). This happens with all completions: custom completions in an NSTokenField and an NSTextField as well as the default mechanism in an u

Re: 'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow'

2009-01-20 Thread Kyle Sluder
On Tue, Jan 20, 2009 at 8:20 AM, Arjun SM wrote: > I want my Menulet to be launched for all the Users who have logged in on > the machine. I works fine for all the Users, but if i install my Menulet as > root .. my application crashes with the below crash log. Root + WindowServer connections =

Re: NSTextView and automaticLinkDetection

2009-01-20 Thread Douglas Davidson
On Jan 19, 2009, at 10:58 PM, Steve Cronin wrote: But what I am looking for is the ability to set a textView's stringValue (an NSString) and have any links in the text be reflected as links (as if I had typed them in) So the distinction is that there are no keyboard events to drive this ev

Re: draw two strokes(lines) simultaneousy on NSView

2009-01-20 Thread Raleigh Ledet
Gami, I assume that you have some way of knowing which device any given set of coordinates are from. You need to combine this information with your previous location data. It sounds like you are doing this: xy = coordinateFromSomeDevice() draw line from prevXY to xy prevXY = xy With multip

Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Hello, I'm working on adding full screen support to my application, I've got it working but I need to add controls to it and a mouse auto hide (shouldn't be too hard). When I tried to add controls over my movie, I placed it on the top layer in my NSView for going full screen, and it doesn't

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Sandro Noel
dave The only one i found was the one for he ipod touch, enjoy. //- // returns the default iPod Touch icon. + (NSImage *) getDefaultiPodTouchIcon{ IconRef iconRef; OSErr err = GetIconRef (kOnSystemDisk

Need click on button in table to NOT activate app

2009-01-20 Thread Scott Ribe
Like the subject says, I need a window, with a table, with buttons in each row of the table--and I need for the user to be able to click on those buttons while the app is not frontmost and have the app not activate. Seems I have to make the window a panel, set it to not hide on deactivate, and use

Re: Custom Cocoa Component/Control

2009-01-20 Thread Paul Franz
Mike, So I should use NSBrowser or an NSCollectionView to manage the different icons that will be in the window. But to do this, do I need to subclass the NSControl or the NSCell or both or will the NSCollectionView/NSBrowser handle the draw of the icons/images w/text? Paul Franz Mike Abd

Mix video and audio

2009-01-20 Thread Jonathan Selander
Hi, My application records video using opengl, but i need to add two audio tracks to it. First i need to add microphone recorded audio to a short muic track, and then add the result to the video. How should i go about to accomplish this? Thanks

Re: Custom Cocoa Component/Control

2009-01-20 Thread Scott Ribe
You probably need a custom NSCell subclass, and you'll set that to be the cell class used by the browser. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Need click on button in table to NOT activate app

2009-01-20 Thread Kyle Sluder
On Tue, Jan 20, 2009 at 1:21 PM, Scott Ribe wrote: > Like the subject says, I need a window, with a table, with buttons in each > row of the table--and I need for the user to be able to click on those > buttons while the app is not frontmost and have the app not activate. Perhaps you'll have good

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Dave
Hi, Yes, that's true. Can I get the Icon with the volume associated with an iPod? I can form the volume file path no problem. All the Best Dave On 20 Jan 2009, at 18:40, Russell Hancox wrote: Dave, Due to there being an icon stored on the root of each iPod, I don't *think* there is an i

Re: Need click on button in table to NOT activate app

2009-01-20 Thread Corbin Dunn
On Jan 20, 2009, at 10:21 AM, Scott Ribe wrote: Like the subject says, I need a window, with a table, with buttons in each row of the table--and I need for the user to be able to click on those buttons while the app is not frontmost and have the app not activate. You'll probably have to ove

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Jean-Daniel Dupas
Did you try -[NSWorkspace iconForFile:] ? Le 20 janv. 09 à 19:49, Dave a écrit : Hi, Yes, that's true. Can I get the Icon with the volume associated with an iPod? I can form the volume file path no problem. All the Best Dave On 20 Jan 2009, at 18:40, Russell Hancox wrote: Dave, Due to

Re: Draw NSView over QTMovieView

2009-01-20 Thread douglas welton
Have you tried to use an overlay (child) window like in the Movie Overlay sample code at the ADC site? Alternately, you have the option of displaying your movie in a QTMovieLayer and adding various sublayers to accomplish the effect you want. On Jan 20, 2009, at 12:58 PM, Mr. Gecko wrote:

Re: Mix video and audio

2009-01-20 Thread douglas welton
Take a look at the QTKit Capture Programming Guide: On Jan 20, 2009, at 1:38 PM, Jonathan Selander wrote: Hi, My application records video using opengl, but i ne

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Actually I don't think that would work because it's adding it to the window it self and the window isn't going fullscreen, only my fullscreen NSView is... i could try subclassing QTMovieView sense it's a subclass of NSView and draw my layer on top. Any suggestions? Mr. Gecko On Jan 20, 200

Re: Need click on button in table to NOT activate app

2009-01-20 Thread Scott Ribe
Corbin & Kyle: Thank you for your suggestions. Overlays & custom NSWindow subclasses are something that I will consider for the future. However my problem was simpler: I forgot to check "Non-activating" in the panel's attributes. I really thought I had made the panel non-activating, but apparentl

NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
Hi, I want to be able to establish the TCP connection to a server and do multiple HTTP GETs with different URLs. I thought will achieve this by allocating a NSURLConnection and then initWithRequest:urlRequest with a different URL everytime as there is no other way to set the URL. It looks like tha

Re: Mix video and audio

2009-01-20 Thread Jonathan Selander
Ahh, that seems to do what i want to audio, but as far as i can read it can only use a camera as input device, and i use a qcview (which i of course should have stated in my previous post) Could i use my current opengl rendering to get the video, qtkit to get the audio, and then somehow mix

Accessing interface elements (iPhone vs Mac)

2009-01-20 Thread Ashley Perrien
I'm currently fairly comfortable with Mac development but still struggling to learn iPhone. I'm seeing differences in how things are coded and I'm not seeing many explanations as to why the difference. For instance, on the Mac, in Interface Builder, I have a text field, I link it up with th

Re: Mix video and audio

2009-01-20 Thread douglas welton
Yes. You can use the rendered frame from your openGL view as samples for compressing video. This is what happens in the QCTV sample code. On Jan 20, 2009, at 3:24 PM, Jonathan Selander wrote: Ahh, that seems to do what i want to audio, but as far as i can read it can only use a camera as i

Re: Draw NSView over QTMovieView

2009-01-20 Thread Matt Long
You can add controls to your View in IB and then use a QTMovieLayer to display your movie (assuming you are Leopard only). Just make sure when you add the QTMovieLayer to your view's sub-layers that you use - insertSublayer:atIndex passing it an index of zero. This will keep all of the contr

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Well I'm going to be Tiger and up so I don't know if that's a good idea. On Jan 20, 2009, at 2:57 PM, Matt Long wrote: You can add controls to your View in IB and then use a QTMovieLayer to display your movie (assuming you are Leopard only). Just make sure when you add the QTMovieLayer to yo

Re: NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
Oops,It looks like initWithRequest seems to work. The problem was in the caching of my UIViewController which has a UIWebView. For UITableView, in viewWillDisAppear, i can invalidate data (by causing a reload and returning no data). I can see that UIWebView has a reload method. But i need to be abl

Re: Draw NSView over QTMovieView

2009-01-20 Thread douglas welton
Mr. Gecko, What code are you using to accomplish "fullscreen" mode? if you are using NSView's -enterFullScreenMode:withOptions: that method is not available on Tiger. Have you considered using a borderless window with a frame that matches the monitor being used for display? This would

Re: Mix video and audio

2009-01-20 Thread Jonathan Selander
Yeah, i used code from this one to implement a video export. The problem now is to mix the video together with to audio files. One recorded via microphone at the same time as the video, and a separate one. 20 jan 2009 kl. 21.51 skrev douglas welton: Yes. You can use the rendered frame fro

Re: NSURLConnection changing the URL

2009-01-20 Thread Andrew Farmer
On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: I want to be able to establish the TCP connection to a server and do multiple HTTP GETs with different URLs. I thought will achieve this by allocating a NSURLConnection and then initWithRequest:urlRequest with a different URL everytime as th

NSXMLNode and NSXMLElement

2009-01-20 Thread Martijn van Exel
Hi all, Consider this small bit of (OpenStreetMap) XML: I got this (and its peers) in an array of NSXMLNodes using the nodesForXPath method on my NSXMLDocument object. Now I need to get to the attribute KVPs. It seems that I must get the individual nodes

Re: Trying to display a simple sheet

2009-01-20 Thread Harry Plate
Scott, > NSApp beginSheet is the correct method, without any runModalForWindow. > Thanks. I did finally find the crux of my problems; I had been trying to do all this prototyping within the -awakeFromNib method. Apparently that is "too soon" - as everything worked just fine when I moved the cod

Re: NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
On Tue, Jan 20, 2009 at 1:23 PM, Andrew Farmer wrote: > On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: > >> I want to be able to establish the TCP connection to a server and do >> multiple HTTP GETs with different URLs. I thought will achieve this by >> allocating a NSURLConnection and then i

Re: [XCode] Generating method stubs

2009-01-20 Thread Emmanuel Pinault
Maybe code generation? Look at Manning book about code generation. Easy to write simple one in Ruby and get your stubs :) On Jan 9, 2009, at 4:57 AM, Graham Cox wrote: On 9 Jan 2009, at 11:10 pm, Martijn van Exel wrote: Hi all, Coming from a .NET/Visual Studio environment, I got used to

Re: Mix video and audio

2009-01-20 Thread douglas welton
Don't create "two" files. Create one movie, then record the video on one track and the audio on a separate track. This can be done in real time (better for synchronization) or you can put the two tracks into the movie after everything has been recorded. Have you taken a look at the Whack

Interaction with web javascript & cocoa

2009-01-20 Thread Alex Mills
Hey, I have built a Javascript WYSIWYG editor. I want to build a WebKit based cocoa app with buttons that can call a function from the editor loaded in webkit. For example I want to have a button within the Cocoa interface that calls the Javascript function 'makeBold()' to make the selected te

Re: Interaction with web javascript & cocoa

2009-01-20 Thread Benjamin Dobson
On 20 Jan 2009, at 22:06:52, Alex Mills wrote: Hey, I have built a Javascript WYSIWYG editor. I want to build a WebKit based cocoa app with buttons that can call a function from the editor loaded in webkit. For example I want to have a button within the Cocoa interface that calls the Jav

Re: Interaction with web javascript & cocoa

2009-01-20 Thread Markus Spoettl
On Jan 20, 2009, at 11:06 PM, Alex Mills wrote: I have built a Javascript WYSIWYG editor. I want to build a WebKit based cocoa app with buttons that can call a function from the editor loaded in webkit. For example I want to have a button within the Cocoa interface that calls the Javascript

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Yeah I tried that but I would like to have the window the same style when it's out of full screen. But you can't change styles as I found out... On Jan 20, 2009, at 3:17 PM, douglas welton wrote: Mr. Gecko, What code are you using to accomplish "fullscreen" mode? if you are using NSView

Re: Interaction with web javascript & cocoa

2009-01-20 Thread Joseph Crawford
what i did is created the outlet to my webview, made the webview load an html file that contains all my JS functions and then call it like so. NSString *command = [[NSString alloc] initWithFormat:@"addMarkerAtPoint(%f, %f, 13, \"%...@\");", [location latitude], [location longitude], [locat

Re: Draw NSView over QTMovieView

2009-01-20 Thread Andy Lee
How about having two windows with different styles, and moving the content view from one to the other when you switch between fullscreen and regular modes? --Andy On Jan 20, 2009, at 5:40 PM, Mr. Gecko wrote: Yeah I tried that but I would like to have the window the same style when it's o

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
I could do that, but how can I move the content? On Jan 20, 2009, at 5:10 PM, Andy Lee wrote: How about having two windows with different styles, and moving the content view from one to the other when you switch between fullscreen and regular modes? --Andy On Jan 20, 2009, at 5:40 PM, Mr.

Observing edits make to a table using bindings

2009-01-20 Thread Randall Meadows
Perhaps I just can't get my head around the terminology sufficiently to search on the right thing...feel free to enlighten me. I have an NSTableView, whose content is supplied through bindings to an array controller. Column A is supplied via FieldListController.arrangedObjects.name, Column

Re: Draw NSView over QTMovieView

2009-01-20 Thread Andy Lee
Does -[NSWindow setContentView:] not work for the kind of stuff you're doing? Sorry, I don't know much about multimedia stuff. --Andy On Jan 20, 2009, at 6:12 PM, Mr. Gecko wrote: I could do that, but how can I move the content? On Jan 20, 2009, at 5:10 PM, Andy Lee wrote: How about havin

Re: autocompletion window disappears

2009-01-20 Thread Josh Abernathy
I've also written my own completion mechanism. It's not too hard, just add a child window and list your results however makes sense for your application. A lot less ugly and a lot more appropriate than Apple's default, in my opinion. On Jan 20, 2009, at 10:28 AM, Ross Carter wrote: On Ja

Re: Can dirhelper delete files in NSTemporaryDirectory() while app is running?

2009-01-20 Thread Steve Shepard
For the archives: Yes, the dirhelper daemon will delete data out from under NSTemporaryDirectory() on Leopard. If your app creates files in NSTemporaryDirectory() and the user leaves the app running for more than 3 days (or unzips an archive containing files with a modification date more than thr

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
Yes that would work for my code. On Jan 20, 2009, at 5:20 PM, Andy Lee wrote: Does -[NSWindow setContentView:] not work for the kind of stuff you're doing? Sorry, I don't know much about multimedia stuff. --Andy On Jan 20, 2009, at 6:12 PM, Mr. Gecko wrote: I could do that, but how can I

Re: Binding of invisible controls: is lazy data loading possible?

2009-01-20 Thread mmalc Crawford
On Jan 19, 2009, at 9:07 PM, Quincey Morris wrote: Well, yes, but that's not the answer to my question. It says: If the to-many related objects are mutable, and the

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
still can't find out how to move it... On Jan 20, 2009, at 5:20 PM, Andy Lee wrote: Does -[NSWindow setContentView:] not work for the kind of stuff you're doing? Sorry, I don't know much about multimedia stuff. --Andy On Jan 20, 2009, at 6:12 PM, Mr. Gecko wrote: I could do that, but how

Re: Draw NSView over QTMovieView

2009-01-20 Thread Andy Lee
Every window has a top-level view called the content view, explained here: . Everything you put in the window is actually put into the content view. My idea was to move the content view of one

Re: Observing edits make to a table using bindings

2009-01-20 Thread Quincey Morris
On Jan 20, 2009, at 15:18, Randall Meadows wrote: I have an NSTableView, whose content is supplied through bindings to an array controller. Column A is supplied via FieldListController.arrangedObjects.name, Column B via FieldListController.arrangedObjects.value; column B is editable, col

Re: Observing edits make to a table using bindings

2009-01-20 Thread Jonathan deWerd
Is it possible [with KVO] to know exactly which array element was edited, without registering observers on the entire contents of the array? I figure it has something to do with the keyPath, but the exact something has thus far eluded me. As I see it, there are several ways to get around your p

Re: NSURLConnection changing the URL

2009-01-20 Thread Andrew Farmer
On 20 Jan 09, at 13:36, Mohan Parthasarathy wrote: On Tue, Jan 20, 2009 at 1:23 PM, Andrew Farmer wrote: On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: I want to be able to establish the TCP connection to a server and do multiple HTTP GETs with different URLs. I thought will achieve th

Re: NSURLConnection changing the URL

2009-01-20 Thread Mohan Parthasarathy
On Tue, Jan 20, 2009 at 4:38 PM, Andrew Farmer wrote: > On 20 Jan 09, at 13:36, Mohan Parthasarathy wrote: > >> On Tue, Jan 20, 2009 at 1:23 PM, Andrew Farmer wrote: >> >>> On 20 Jan 09, at 12:22, Mohan Parthasarathy wrote: >>> >>> I want to be able to establish the TCP connection to a server a

Re: Draw NSView over QTMovieView

2009-01-20 Thread Mr. Gecko
thanks, that works. On Jan 20, 2009, at 6:10 PM, Andy Lee wrote: Every window has a top-level view called the content view, explained here: . Everything you put in the window is actually put in

Re: Draw NSView over QTMovieView

2009-01-20 Thread douglas welton
moving the entire content view may be the equivalent of killing a gnat with a bazooka. ;^) all that may be required is moving the QTMovieView. This is basic stuff supported by NSView's methods like - addSubview: and -removeFromSuperview: (make sure you retain and release appropriately)

Re: NSURLConnection changing the URL

2009-01-20 Thread Roland King
Is there a way to not to allocate the connection everytime i need to send a new request ? Yes. I'm pretty sure that the URL loading framework will use HTTP keepalives automatically when appropriate. I am not sure i undrstood this. If i allocate a NSURL connection everytime i need to f

Re: Accessing interface elements (iPhone vs Mac)

2009-01-20 Thread Graham Cox
On 21 Jan 2009, at 7:41 am, Ashley Perrien wrote: I believe I've tried it and the property and synthesize are not NECESSARY for it all to work; so is having it in there of some kind of benefit for the iPhone or is it just a quirk of how developer X likes to do things? I've seen some discus

Re: Accessing interface elements (iPhone vs Mac)

2009-01-20 Thread mmalc Crawford
On Jan 20, 2009, at 12:41 PM, Ashley Perrien wrote: I'm currently fairly comfortable with Mac development but still struggling to learn iPhone. I'm seeing differences in how things are coded and I'm not seeing many explanations as to why the difference. For instance, on the Mac, in Interfa

Re: Accessing interface elements (iPhone vs Mac)

2009-01-20 Thread mmalc Crawford
I omitted: mmalc ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: NSURLConnection changing the URL

2009-01-20 Thread Michael Ash
On Tue, Jan 20, 2009 at 7:49 PM, Mohan Parthasarathy wrote: >> Is there a way to not to allocate the connection everytime i need to send > a new request ? > Yes. I'm pretty sure that the URL loading framework will use HTTP keepalives automatically when appropriate. >>>

Re: NSURLConnection changing the URL

2009-01-20 Thread Michael Vannorsdel
I've looked into this quite some time ago and have seen NSURLConnection keep FTP and HTTP connections open even after the originating NSURLConnection had been deallocated. The same connection was reused for subsequent NSURLConnections to the same destination. I never did see these close t

Re: NSXMLNode and NSXMLElement

2009-01-20 Thread ajb . lists
On Jan 20, 2009, at 10:33 PM, Martijn van Exel wrote: Hi all, Consider this small bit of (OpenStreetMap) XML: user='mvexel' osmxapi:users='mvexel' timestamp='2008-12-11T13:11:41Z'> I got this (and its peers) in an array of NSXMLNodes using the nodesForXP

Re: Binding of invisible controls: is lazy data loading possible?

2009-01-20 Thread Ken Thomases
On Jan 19, 2009, at 11:07 PM, Quincey Morris wrote: If the to-many related objects are mutable, and the - method does not return an NSMutableArray, you must also implement - insertObject:inAtIndex: and -removeObjectFromAtIndex:. [...] It also suggests that if the - method *does* return a

Re: Observing edits make to a table using bindings

2009-01-20 Thread Ken Thomases
On Jan 20, 2009, at 5:18 PM, Randall Meadows wrote: I have an NSTableView, whose content is supplied through bindings to an array controller. Column A is supplied via FieldListController.arrangedObjects.name, Column B via FieldListController.arrangedObjects.value; column B is editable, c