Re: How to set focus on table view's editable cell on Enter key press

2011-01-05 Thread Graham Cox
On 05/01/2011, at 6:32 PM, Abhijeet Singh wrote: > Hi,I have a table view in my application. Table view has 3 columns. Items > (rows) in table view are added on Enter (return) key press on keyboard. > Column no 2 is editable and user needs to fill it. What I want to achieve is > when user pres

WebKit: how to handle downloadable files?

2011-01-05 Thread Michael Thon
I'm looking through the WebKit Programming Guide but I can't find any documentation on how to handle files that should be downloaded instead of displayed in the webview. Can anyone point me to an example or some documentation? Thanks ___ Cocoa-dev m

Why!, UIPopOver with UINavigationController autoresizes after pushing a viewcontroller in the navcontroller.

2011-01-05 Thread Gustavo Adolfo Pizano
Hello all. Ok so this is driving me crazy already. I have a UINavigationViewController with a UIPopOver which Im initializing like this: bc_backgroundScrollChooser = [[BeCreativeBackgroundChooserFirstLevel alloc] initWithNibName:@"BCScrollChooser" bundle:nil]; bc

Re: WebKit: how to handle downloadable files?

2011-01-05 Thread Mike Abdullah
What do you mean by "handle" them? On 5 Jan 2011, at 11:47, Michael Thon wrote: > I'm looking through the WebKit Programming Guide but I can't find any > documentation on how to handle files that should be downloaded instead of > displayed in the webview. Can anyone point me to an example or s

Re: WebKit: how to handle downloadable files?

2011-01-05 Thread Michael Thon
'handle them' = 1. recognize that the url that the user clicked is to a file that should be downloaded, rather than loaded in the webview. and 2. download the data to a file. Currently, when I click on a link to a file such as one with a .doc extension, my webview calls : - (void)webView:(WebV

Re: Communicating to a process started by root from non-root app

2011-01-05 Thread Ken Thomases
On Jan 3, 2011, at 1:22 PM, eveningnick eveningnick wrote: >> Unless I'm forgetting something basic, you should be able to connect to your >> daemon's socket from a non-root process if you first change the permissions >> on the socket (using chmod, as if it were a file). The man page for the >>

Stupid png icons

2011-01-05 Thread William Squires
This is in reference to earlier messages vis-a-vis png icons not displaying correctly on UITabBarItems. It was suggested to make sure the icons have an alpha channel, so I reloaded them into GraphiConverter, and set it so they would have an alpha-channel mask, which I then copied from the icon

Re: Stupid png icons

2011-01-05 Thread koko
As I recall you were converting windows bmp files. I believe windows bmp files are RGBA ... the converter you are using may be expecting ARGB On Jan 5, 2011, at 10:05 AM, William Squires wrote: This is in reference to earlier messages vis-a-vis png icons not displaying correctly on UITabB

NSCollectionView start dragging immediately

2011-01-05 Thread Martin Hewitson
Dear List, I have an app which contains a collection view with items which are supposed to be re-ordered by the user. All is working well apart from one niggle: the user has to click and hold down the mouse button for about 1 second before a drag begins. This is most unintuitive and it took me

[Job Posting] Software Engineer in Columbia, MD, USA

2011-01-05 Thread Lyndsey Ferguson
https://www.appone.com/MainInfoReq.asp?R_ID=320408 There are Software Engineer positions open with Nemetschek Vectorworks, Inc. in Columbia, MD, USA. See the above link for more information and how to apply. Objective-C knowledge is also an asset. Mr. Lyndsey Ferguson (I am not the hiring manage

Context in GCD source cancel handler?

2011-01-05 Thread Jonathon Kuo
When a GCD source gets cancelled, either via dispatch_source_cancel() or because the source went away, I have no context other than the dispatch_source_t source variable. How can I know for which source a source cancel handler gets invoked? I have many simultaneous sources (sockets, files, etc)

[Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Jason S-M
For the archives: The answer was choosing File-Type of Objective-C++ since I had a mixture of CPP and MM files. I did this in the build target settings. Thanks Jean-Daniel from the Carbon mailing list for shedding some light to the problem. On Jan 4, 2011, at 6:53 AM, Scott Ribe wrote: > On J

Re: Context in GCD source cancel handler?

2011-01-05 Thread Dave Zarzycki
Jonathon, GCD is an object oriented API done in C. If you look at the man page entitled dispatch_object, you'll see that one can call dispatch_set_context() and dispatch_get_context() against any GCD object (sources and queues are where they make the most sense). In fact, if you're simply looki

execute system("some script") on behalf of root from non-root app

2011-01-05 Thread eveningnick eveningnick
Hello I am trying to write a simple uninstaller, that has to call few root-demanding actions - stopping/unloading daemon and unloading kext. I can do that from a script-uninstaller, like this: #!/bin/sh launchctl stop my.agent launctctl -w unload /Library/LaunchAgents/my.agent.plist sudo launchctl

Re: execute system("some script") on behalf of root from non-root app

2011-01-05 Thread Nick Zitzmann
On Jan 5, 2011, at 12:24 PM, eveningnick eveningnick wrote: > Having clicked on a button, it requests admin's password and launches > the helper tool. But in System Console i see messages like "to unload > kext you need to be root", "unable to stop the daemon". Only agent can > be stopped. > Why

Re: execute system("some script") on behalf of root from non-root app

2011-01-05 Thread eveningnick eveningnick
Thanks Nick, i really should've googled before asking. ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubs

Re: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Scott Ribe
On Jan 5, 2011, at 11:59 AM, Jason S-M wrote: > The answer was choosing File-Type of Objective-C++ since I had a mixture of > CPP and MM files. You shouldn't *need* to do that. Something was (and still is) wrong with your setup beyond what you described, or your description was mistaken somewhe

Re: Context in GCD source cancel handler?

2011-01-05 Thread Jonathon Kuo
Thanks Dave, that's awesome! Just what I was looking for! Q: When a context object is set with dispatch_set_context(), is it retained? Or do I need to retain it first, set it, and then in the cancel handler release it? -Jon On Jan 5, 2011, at 11:15 AM, Dave Zarzycki wrote: > Jonathon, > > GC

Re: NSCollectionView start dragging immediately

2011-01-05 Thread Lee Ann Rucker
On Jan 5, 2011, at 9:33 AM, Martin Hewitson wrote: > Dear List, > > I have an app which contains a collection view with items which are supposed > to be re-ordered by the user. All is working well apart from one niggle: the > user has to click and hold down the mouse button for about 1 second b

Re: Context in GCD source cancel handler?

2011-01-05 Thread Dave Keck
> Q: When a context object is set with dispatch_set_context(), is it retained? > Or do I need to retain it first, set it, and then in the cancel handler > release it? The 'context' argument is not retained. You can infer this primarily by the declaration of dispatch_set_context(), and also the m

Re: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Jason S-M
>> The answer was choosing File-Type of Objective-C++ since I had a mixture of >> CPP and MM files. > > You shouldn't *need* to do that. Something was (and still is) wrong with your > setup beyond what you described, or your description was mistaken somewhere > along the line. OK, Any idea ho

dylib question

2011-01-05 Thread Brad Garton
Cocoa-dev list -- I hope this is the right list to ask. Does Apple allow the use of dynamic linked libs (dylibs) on iOS devices? I think originally they prohibited DLLs, but now I'm not so sure. brad http://music.columbia.edu/~brad ___ Cocoa-dev m

Re: dylib question

2011-01-05 Thread David Duncan
On Jan 5, 2011, at 2:13 PM, Brad Garton wrote: > I hope this is the right list to ask. Does Apple allow the use of dynamic > linked libs (dylibs) on iOS devices? I think originally they prohibited > DLLs, but now I'm not so sure. iOS SDK applications cannot load code dynamically, and as such

Re: dylib question

2011-01-05 Thread Brad Garton
Thanks David. That's what I had thought. I'l keep working with my static libs. brad http://music.columbia.edu/~brad On Jan 5, 2011, at 5:18 PM, David Duncan wrote: > On Jan 5, 2011, at 2:13 PM, Brad Garton wrote: > >> I hope this is the right list to ask. Does Apple allow the use of dynamic

Re: [Solved] Re: When adding Cocoa classes I get a lot of compile errors automatically

2011-01-05 Thread Scott Ribe
On Jan 5, 2011, at 3:01 PM, Jason S-M wrote: > OK, Any idea how I might go about debugging to figure it out? I suppose I can > start with a small sample of a carbon app and add cocoa and see what > happens..take my large project out of the mix to see if it sheds light on the > answer. Might be

RE: execute system("some script") on behalf of root from non-root app

2011-01-05 Thread Shawn Bakhtiar
Search google is not an answer, although a good suggestion. Could you please post the solution you came up with to the list. There are many ways to skin this cat, I think we would all benefit from your experience. Correct. You are NOT running them as root, but you can easily tell the script t

Re: Rendering combining marks

2011-01-05 Thread George Nachman
That's exactly what I needed, thanks! On Mon, Jan 3, 2011 at 8:34 PM, Aki Inoue wrote: > -drawInRect: variant is designed for matching the field editor layout. > > -drawWithRect: variant is the base and should be used over the other two. > > Aki Inoue > > > On 2011/01/03, at 16:45, George Nachman

Question regarding popoverControllerDidDismissPopover: delegate method

2011-01-05 Thread Jon Brooks
My iPad application has a UIPopover that presents a table view. When a user clicks on an item in the table view, the contentController dismisses the popover. Also, the popover has the default behavior such that a click outside the popover will dismiss it as well. The parent viewController ret

[UIWeVview] goBack:/goForward:

2011-01-05 Thread Donald Hall
HI, It seems that these two methods work fine if the view content is loaded by "loadDocument:inView:", but don't work if the HTML data is loaded into the web view via "loadHTMLString: baseURL". In the former case the back and forward buttons I made to invoke these two methods work, but when I

Making a window topmost within an application

2011-01-05 Thread deovrat singh
Hi, In my application,I have a set of windows.I want one of the window to be top most all the time when the application is active.I tried doing this by changing the level of the window, but didn't succeed. If I put NSNormalWindowLevel , then on clicking any other window of my application this win