Re: Retrieving Boolean from database

2008-11-30 Thread Mahaboob
Thanks Clark Cox, Now it is working fine. I also need to retrieve all the values where this Boolean value is True. I tried the Query like both: QuickLiteCursor * cursor = [db performQuery:[NSString stringWithFormat: @"select * from Contact where UseDefault = 1 "]]; and QuickLiteCursor * cursor = [

Re: NSTextField as a CALayer

2008-11-30 Thread Scott Anguish
No, you can't do this. Core Animation is designed for easy animation, but not so you can freely mix views and layers like this. you could probably do what you want by doing your current CALayer drawing into an NSView, and then add the textfield as a subview of that view.. then turn on lay

Programatically creating iDisk URL

2008-11-30 Thread Robert Boyer
I'm adding a feature to my Cocoa app to periodically copy a backup of the app's data file to the user's iDisk. I understand how to mount the iDisk (from reading this list), but I can't find a way to programatically create the iDisk's URL. Specifically, since the user's MobileMe account na

Re: Retrieving Boolean from database

2008-11-30 Thread Clark Cox
On Sun, Nov 30, 2008 at 9:29 PM, Mahaboob <[EMAIL PROTECTED]> wrote: > Hi, > I'm using QuickLite database to hold some data. I created one column as > Boolean to hold the state of a Checkbox and I inserted the values to the > table. But whenever I'm retrieving the values from database the Boolean >

Retrieving Boolean from database

2008-11-30 Thread Mahaboob
Hi, I'm using QuickLite database to hold some data. I created one column as Boolean to hold the state of a Checkbox and I inserted the values to the table. But whenever I'm retrieving the values from database the Boolean value is return only 1 and so I can't set the state of the Checkbox correctly.

Re: CFMessagePort and GC

2008-11-30 Thread Ryan Brown
Also, forgot to mention: calling either objc_collect_if_needed() or [[NSGarbageCollector defaultCollector] collectExhaustively] after releasing the run loop source and message port doesn't force an immediate deallocation. Not sure why. On Nov 30, 2008, at 9:15 PM, Ryan Brown wrote: Hi, W

CFMessagePort and GC

2008-11-30 Thread Ryan Brown
Hi, When a local CFMessagePort is invalidated it's underlying CFMachPort isn't immediately invalidated. Instead, the mach port is invalided when the message port is deallocated. I gleaned this by reading through the CFMessagePort source code (the reason given in CFMessagePortInvalidate()

Re: Forcing garbage collection, freeing up memory, thrashing

2008-11-30 Thread Bill Bumgarner
On Nov 30, 2008, at 4:44 PM, William Squires wrote: The collector provides API for this: objc_clear_stack(OBJC_CLEAR_RESIDENT_STACK); NSRunLoop does this automatically as it passes through each loop. Since you are blocking the run loop, you'll have to do this for it. Wouldn't thi

Re: about Preferences Toolbar

2008-11-30 Thread Rob Keniger
On 30/11/2008, at 10:07 PM, Peter N Lewis wrote: I am writting the mac component of a mac-iphone application. I saw most of the applications(Finder, MSN, iChat...) on Mac are all using the same style preferences toolbar. However, I didn't find it in IB's Libirary. Could anyone tell me wh

Re: Forcing garbage collection, freeing up memory, thrashing

2008-11-30 Thread William Squires
On Nov 4, 2008, at 1:21 PM, Bill Bumgarner wrote: On Nov 4, 2008, at 10:46 AM, Sean McBride wrote: Hi all, I have a 64 bit, Cocoa, GC app. It loads many large bitmap files. Each is about 500 MiB, and the user may want to load about 50 of them. When each file is opened, I read the entir

Re: about Preferences Toolbar

2008-11-30 Thread Peter N Lewis
At 4:55 + 30/11/08, BirdSong wrote: I am writting the mac component of a mac-iphone application. I saw most of the applications(Finder, MSN, iChat...) on Mac are all using the same style preferences toolbar. However, I didn't find it in IB's Libirary. Could anyone tell me what's it or whe

Re: Right language

2008-11-30 Thread Daniel Richman
Another way of doing this: Cocoa Programming for Mac OS X talks about this specific thing. It's either the second-to-last or the last chapter, and it's entitled "NSTask."It allows you to wrap around a shell command and get stdout and stderr. Obviously, if there's a framework, that's best, but t

Re: reading a PDF

2008-11-30 Thread Joel Norvell
Antonio, Thank you for laying out this recipe; you really know "this stuff"! (Not that there was any question, given your flagship application PDFClerk :-) Thank you for deepening my understanding of working with PDFs! Torsten, The code I mentioned to you "Creating and Examining PDF Documents

Re: Command-clicking table column -- radar://6407526

2008-11-30 Thread Kirk Kerekes
Done: Now that I have done that I eagerly anticipate the post that shows me my bonehead error. On Nov 30, 2008, at 2:02 PM, [EMAIL PROTECTED] wrote: I was surprised to discover that command-clicking NSTableView columns does not appear to function as per the standard interface guidelines

NSTextField as a CALayer

2008-11-30 Thread Ulai Beekam
How can I incorporate an (editable) NSTextField into a CALayer, so that I can put the text field into another layer by doing [parentLayer addSublayer:textFieldLayer] ? I really need to do this or some similar thing. Core Animation boasts being easily be able to create animated user interfaces

NSArrayController trouble

2008-11-30 Thread Alexander Cohen
Hi, Im getting the following line in the console when sending the 'removeObjectsAtArrangedObjectIndexes:' message to an NSArrayController instance. -[NSCFArray removeObjectAtIndex:]: mutating method sent to immutable object I understand what it means but i'm not sure why it's happening. I

Re: IR Remote Control Events

2008-11-30 Thread Knut Lorenzen
Am 30.11.2008 um 21:12 schrieb Gordon Apple: Is there a simple way give to get the 6 button events from an Apple IR Remote control in Cocoa? Look here: Cheers, Knut

IR Remote Control Events

2008-11-30 Thread Gordon Apple
Is there a simple way give to get the 6 button events from an Apple IR Remote control in Cocoa? ___ 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: Command-clicking table column

2008-11-30 Thread Kyle Sluder
On Sun, Nov 30, 2008 at 1:23 PM, Kirk Kerekes <[EMAIL PROTECTED]> wrote: > I was surprised to discover that command-clicking NSTableView columns does > not appear to function as per the standard interface guidelines > (discontinuous selection): File a bug regardless of whatever response you receiv

Re: Cant set state of NSMenuItems attached to NSSearchField

2008-11-30 Thread Jim Correia
On Nov 30, 2008, at 2:03 PM, Mike Chambers wrote: I have an NSMenu attached to an NSSearchField as a searchMenuTemplate. [snip] If the user selects "All", I want to remove all check marks from other selected menu items. If the user selects anything except "All", then I want to remove the che

Cant set state of NSMenuItems attached to NSSearchField

2008-11-30 Thread Mike Chambers
I have an NSMenu attached to an NSSearchField as a searchMenuTemplate. The menu is as Follows: --- All Start End Country Station Notes Frequency If the user selects "All", I want to remove all check marks from other selected menu items. If the user selects anything except "All", the

Command-clicking table column

2008-11-30 Thread Kirk Kerekes
In at least Leopard, I was surprised to discover that command-clicking NSTableView columns does not appear to function as per the standard interface guidelines (discontinuous selection): "A Command-click should result in a discontinuous selection. With discontinuous selection, in which th

Re: -[NSWindowController window] fails

2008-11-30 Thread Alexander Shmelev
Hello, I have found that aforementioned issue exists only when Image Capture (Tiger) loads my TWAIN DS plugin. Other software (ReadIris, TWAINCocoaClient, ...) load my TWAIN DS plugin and show its dialog without problems. Image Capture (Leopard) also use my TWAIN DS plugin without any problems. A

Re: Sorting an NSTableView

2008-11-30 Thread Gerriet M. Denkmann
On 30 Nov 2008, at 14:05, Patrick Mau wrote: Hello Gerriet If you select the table column and look at the inspector window, you'll find a "Sort key" and "Selector" input field. These are used to create the NSSortDescriptor. Regards Patrick (Small screenshot attached, sorry if it's again

Re: Right language

2008-11-30 Thread Jean-Daniel Dupas
Le 30 nov. 08 à 09:15, Arnold Nefkens a écrit : Ok thank you, I did indeed mean Objective-C as the language. I do not have the lingo down yet... To access a Directory you have to use dscl to gain the access to needed data. dscl use a public API. It's possible to access a Directory from

Re: Keystrokes for non-ascii letters (SOLVED)

2008-11-30 Thread Jean-Daniel Dupas
Le 30 nov. 08 à 01:02, Dave DeLong a écrit : Fantastic! I've gotten it to work, and it works beautifully! Thank you, James (and everyone else) for helping me with this. For archival purposes, here's my code: CGEventSourceRef eventSource = CGEventSourceCreate(kCGEventSourceStateHIDSyste

Re: displaying huge log files

2008-11-30 Thread Andrew Farmer
On 29 Nov 08, at 14:23, Nick Zitzmann wrote: On Nov 29, 2008, at 5:39 AM, Mudi Dandan wrote: Is it possible to to display a memory mapped file in an NSTextView Of course. With one caveat: When creating a memory mapping (by using mmap), you have to specify the length of the region you want

Re: reading a PDF

2008-11-30 Thread Antonio Nunes
On Nov 29, 2008, at 6:42 PM, Torsten Curdt wrote: I am a little stuck here. I am trying to extract (and later modify) text and images in a PDF. First I turned to PDFkit but that seems to be way to high level for these things. Now I am trying with Quartz. Hi Torsten, Quartz is indeed the level

Re: NSTrackingArea strange requirement

2008-11-30 Thread Quincey Morris
On Nov 29, 2008, at 23:50, chaitanya pandit wrote: I dunno if this is the right way to do it, but what if you Override mouseMoved: for the main view that contains all the subviews, and use a hitTest: to find the view over which the cursor is hovering and simply use [[NSCursor whateverCursor

Re: Right language

2008-11-30 Thread Arnold Nefkens
Ok thank you, I did indeed mean Objective-C as the language. I do not have the lingo down yet... To access a Directory you have to use dscl to gain the access to needed data. So I'm stuck in using a shell application to get the right information out of the directory. Thanks anyway. I'll