Re: Removing folder from /Applications

2008-07-08 Thread Robert Cerny
On 8.7.2008, at 12:52, Glover,David wrote: Hi there, I've create a little app that is required to remove an obsolete folder from /Applications. This works fine when the user is logged in as an Admin, but not when logged in as a Standard user, as they obviously require authorization. So,

string to float

2008-07-04 Thread Robert Cerny
Hi folks, I made a parser, which returns values like 10,45. It means, it has comma as a decimal point delimiter, which is correct in my language. I was trying to find a way to convert to NSNumber. Is it correct the the right way is to use NSScanner? Robert _

Re: Memory not freed with CIImage

2008-06-12 Thread Robert Cerny
On 12.6.2008, at 7:48, Stefano Falda wrote: On 12/giu/08, at 00:34, Nick Zitzmann wrote: It's normal for physical memory sizes to go up, and not come down until either the program is quit or the physical memory is needed elsewhere. Activity Monitor is not a memory leak detector. If you w

Re: Support saving to network volumes

2008-05-29 Thread Robert Cerny
oseph butler wrote: On Fri, May 30, 2008 at 1:36 AM, Robert Cerny <[EMAIL PROTECTED]> wrote: Hello folks, being more sysadmin than developer I'm very interested in the issue of saving Photoshop files over network, which is discussed here: <http://discussions.apple.com/thread.jsp

Support saving to network volumes

2008-05-29 Thread Robert Cerny
Hello folks, being more sysadmin than developer I'm very interested in the issue of saving Photoshop files over network, which is discussed here: and here - and appears to be broken in

Re: Contextual menu on an NSTableView

2008-05-23 Thread Robert Cerny
On 23.5.2008, at 19:06, Allan Greenier wrote: I've got some working code that puts up a Contextual menu on my own NSView subclass. Works like a charm. When I try to call setMenu on a NSTableView using the same menu, I crash. How do I put up a contextual menu on an NSTableView? Thanks, Allan

Re: 'Configure Sheet' fails when containing a WebView

2008-05-23 Thread Robert Cerny
On 23.5.2008, at 14:28, harry greenmonster wrote: Hi I have a screensaver which I'm building, I have created a 'configure sheet' accessed by the 'options' button in 'system preferences>screensaver'. In IB I drag WebView onto my 'configure sheet', then when I test the screensaver the 'opt

Re: Query about Zip command

2008-05-23 Thread Robert Cerny
On 23.5.2008, at 10:26, parag vibhute wrote: Hi all, I am developing cocoa application & using NSApplescript class to do shell scripting which involves zip command. I am using zip command for zipping the files because there is no framework api available for it. Even though libz is availa

Re: DirWatch

2008-05-22 Thread Robert Cerny
On 23.5.2008, at 6:42, Ken Thomases wrote: On May 22, 2008, at 10:56 PM, Ken Thomases wrote: On May 22, 2008, at 6:57 PM, Lorenzo wrote: I can't. Think about the FNSubscribe tells me that there is something new because the user copied 2 new files into that folder, but only one file is t

Re: DirWatch

2008-05-22 Thread Robert Cerny
On 23.5.2008, at 0:32, Lorenzo wrote: Hi, I need to watch at a given folder and check whenever a new file has been copied therein. At the beginning, I fired a timer periodically getting the list of the contents of that folder with directoryContentsAtPath But soon I discovered that the

Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Hi, could you send me your project off list? I will check it and let you know what's wrong. (If I find it of course) Robert On 22.5.2008, at 19:39, Michael McLaughlin wrote: Robert Cerny wrote: Just FYI, [myButton setKeyEquivalent:@"\r"]; is the correct way to set butto

Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Just FYI, [myButton setKeyEquivalent:@"\r"]; is the correct way to set button to Default. Are you sure that speakButton is not nil? Robert On 22.5.2008, at 16:51, Michael McLaughlin wrote: As a Cocoa newbie (after years of Carbon), I am working my way through the 3rd edition of Hillegass'

Re: Newbie query re default buttons

2008-05-22 Thread Robert Cerny
Hi, could you simply add the default flag in IB? 1. select the button 2. Hit -1 to bring up Inspector pane 3. Click the dark grey rectangle next to "Key Equiv." 4. Hit Enter HTH Robert On 22.5.2008, at 16:51, Michael McLaughlin wrote: As a Cocoa newbie (after years of Carbon), I am working my

Re: NSTextField will not become editable in a borderless window

2008-05-22 Thread Robert Cerny
You need to subclass NSTextField. HTH Robert On 22.5.2008, at 14:13, Peter Burtis wrote: When I add an NSTextField to a borderless window, nothing I do will make it editable. Specifically, running the code below, the text field just won

Re: NSPasteboard Delegate

2008-05-22 Thread Robert Cerny
Hi, I don't think it's possible to be notified about pasteboard change. Depending on your needs I believe a polling should be the right way to go. HTH Robert On 22.5.2008, at 14:08, Adil Saleem wrote: Let me be more precise this time. I haven't used pasteboards before. I think i asked w

Re: NSWindow in main nib.

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 12:52, [EMAIL PROTECTED] wrote: Hi, I posted a qustion that about wndow zoom button.Now i got the window by setting all the intial positions. Thanks Sorry I have no idea what are you talking about. Could you please rephrase your question? Anyway, please don't cross po

Re: NSTextField does not lose focus

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 11:15, Torsten Curdt wrote: I've got a NSTextField (on a NSTabView). I open the window. I click the text field and enter some text. Now I click on a button next to it. The value has still not been "committed" and it still has the cursor. Then I click outside of the text f

Re: File integrity

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 12:35, [EMAIL PROTECTED] wrote: Hi all, is there a way to tell if my executable was launched by/attached to some other process? Basically, I just want to kill myself as soon as I sense those prying eyes, in order to make it just a little it harder for the crackers. TIA Chec

Re: Core Data: How to encrypt a persistent store

2008-05-22 Thread Robert Cerny
On 22.5.2008, at 12:12, Ruotger Skupin wrote: Hi, I have an application which uses Core Data and handles sensitive information. Is there an easy way to encrypt the on-disk persistent store provided I'm reasonably fluent in libCrypto and do not want to use an encrypted disk image? Ruotg

Re: Cocoa et al as HCI usability problem

2008-05-22 Thread Robert Cerny
Well, I just made new bugreport #5955452 to enhance docs sets with more sample code inside of method descriptions. I took NSEnumerator's nextObject method as a sample how to do it the right way..

Re: NSXMLDocument encoding

2008-05-05 Thread Robert Cerny
Hi, On 5.5.2008, at 23:14, Jens Alfke wrote: On 5 May '08, at 12:53 PM, Robert Cerny wrote: doc = [[NSXMLDocument alloc] initWithData:webData options:NSXMLDocumentTidyHTML error:&error]; Try using -initWithCont

Re: NSXMLDocument encoding

2008-05-05 Thread Robert Cerny
On 5.5.2008, at 22:41, Ricky Sharp wrote: On May 5, 2008, at 2:53 PM, Robert Cerny wrote: I use NSXMLDocument to parse web page content, which is in NSWindowsCP1250Encoding. However I don't get correctly encoded data from NSXMLNodes NSURLRequest *req = [NSURLRequest requestWi

NSXMLDocument encoding

2008-05-05 Thread Robert Cerny
Hi folks, I use NSXMLDocument to parse web page content, which is in NSWindowsCP1250Encoding. However I don't get correctly encoded data from NSXMLNodes NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; NSData *webData = [NSURLConnection sendSynchronousRequest:r

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
On 28.4.2008, at 19:19, I. Savant wrote: ... so is your category method -lastName being called? I'm able to get the correct value from gdb but it looks like my method isn't called or is wrong implemented... If the method isn't called, that's the more important problem (since

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
On 28.4.2008, at 17:20, I. Savant wrote: I got table populated with description of ABPerson records like: ABPerson (0xbc14600) { ABPersonFlags : 16 Creation : 2008-01-12 18:30:22 +0100 Email : { * work [EMAIL PROTECTED] } First :

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
On 28.4.2008, at 17:03, I. Savant wrote: I did drop content binding for table and checked that lastName was a typo. I created a textfield and did set it up to: binding: ABPeople controller key: arrangedObjects model:@count and got correct 388 count of ppl in AB. So is it the same result

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
Hello IS, thanks for your reply. On 28.4.2008, at 16:46, I. Savant wrote: and I'm trying to display all last names in the table. - I created NSArrayController ABPeople and set content to my delagate, key path: peeps This is imprecise - if there is a problem with this, we won't know to t

Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
Hi, I'm kind of stupid today, my question is probably very easy to answer. I haven't been in programming for some time and somehow cannot manage solution for my following simple problem.. I got an array 'peeps' populated in apps delegate: peeps = [[NSArray arrayWithArray:[[ABAddressBook sha

AddressBook.framework & binding

2008-04-28 Thread Robert Cerny
hi everybody, I searched the web but I'm probably not asking the right question :/ Is there a way how to use AddressBook data with bindings directly (I mean without writing glue code for extracting values wrapped with properties)? I mean I can write bunch of repeating code and add it to AB

Re: NSMailDelivery Deprecated

2008-04-12 Thread Robert Cerny
Hello Seth, check this link HTH Robert On 12.4.2008, at 19:35, Seth Willits wrote: Howdy, I'm writing an internal tool, and NSMailDelivery looked to fit the bill to automatically send emails behind the scenes, but it was deprecated