Re: Cocoa-dev Digest, Vol 7, Issue 745

2010-07-18 Thread Ryan McGann
>> On Jul 16, 2010, at 3:46 PM, Rafael Cerioli wrote: >> >>> Hi everybody, >>> >>> What would be the most efficient way to download data without blocking the >>> UI (I'm targeting old iPhone/iPod devices) ? >>> >>> - using a NSURLConnection seams nice, but as it calls its delegate >>> (-conne

Re: Data downloading performance

2010-07-18 Thread Ryan McGann
(Sorry, re-sending with the appropriate subject. Stupid copy & paste failed, my bad). >> On Jul 16, 2010, at 3:46 PM, Rafael Cerioli wrote: >> >>> Hi everybody, >>> >>> What would be the most efficient way to download data without blocking the >>> UI (I'm targeting old iPhone/iPod devices) ?

Re: Binding to title of NSButtonCell in a table view

2010-07-18 Thread Gideon King
Thanks for the reply - that sounds similar to what I tried before where I hooked in to the dataCellForTableColumn and willDisplayCell methods, but they are not updated when the underlying data is changed, which would presumably mean that somewhere I would have to set up KVO for each value that w

Re: Binding to title of NSButtonCell in a table view

2010-07-18 Thread Quincey Morris
On Jul 18, 2010, at 00:41, Gideon King wrote: > Thanks for the reply - that sounds similar to what I tried before where I > hooked in to the dataCellForTableColumn and willDisplayCell methods, but they > are not updated when the underlying data is changed, which would presumably > mean that som

Re: Initializing unichar variable with a human readable letter

2010-07-18 Thread vincent habchi
Hi Ken, > Doing this will probably work: > unichar foo = L'é'; Thanks, that's perfect. > With modern compilers, it should be possible to do (roughly) what you want if > the source file is UTF-8 encoded. However, note that "é" is often > represented as "e" followed by U+0301 COMBINING ACUTE AC

Re: Binding to title of NSButtonCell in a table view

2010-07-18 Thread Gideon King
Thanks for the suggestion Quincey - I have just finished implementing an NSTableColumn subclass which does the observing etc, and is working nicely, but as you say, it's not the neatest solution. Your idea sounds like an interesting one to pursue - I could just make up a dummy property that uses

Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-18 Thread Darren Wheatley
Hi, Can anyone give me a pointer on how to encrypt (and use) the data in the Core Data sql store of my Mac desktop app? My application has a data store that on its own has a value, and I would like to provide at least a basic level of protection / deterrent before I release it. I've Googled

Re: Add Tick Mark in NSCombobox List

2010-07-18 Thread Uli Kusterer
Am 17.07.2010 um 11:20 schrieb Nishad Peruvana: > I am customize NSComboBox such way that the Item List should show a 'Tick' > mark on left side of the item currently selected. Can anybody direct me to > achieve this task. You have the wrong control. If you want a tick mark, use an NSPopUpButto

Re: Data downloading performance

2010-07-18 Thread Rafael Cerioli
Le 18 juil. 2010 à 03:03, Ryan McGann a écrit : >> > Unfortunately, I can't find the sources at the moment as it was a while ago, > but there was an interesting discussion about this topic on the > macnetworkprog mailing list. Apple found in the early days of iPhone > programming that threads

Re: Data downloading performance

2010-07-18 Thread Ryan McGann
On Jul 18, 2010, at 7:42 AM, Rafael Cerioli wrote: > Le 18 juil. 2010 à 03:03, Ryan McGann a écrit : >> Unfortunately, I can't find the sources at the moment as it was a while ago, >> but there was an interesting discussion about this topic on the >> macnetworkprog mailing list. Apple found in

Strategy for handling RTFD on iOS

2010-07-18 Thread Martin Hewitson
Dear list, I have a core-data app which stores some of the application content as an NSData field containing RTFD data. I would like to create a corresponding iphone/ipad app which would ideally allow this data to be displayed and edited. I realise that the 'editing' part might be somewhat chal

Re: HTTP Pipe lining communication in iPhone application

2010-07-18 Thread SridharRao M
Any one have idea of implementing this. If any please share with me. Thanks, Sridhar. On Sat, Jul 17, 2010 at 10:00 PM, Dave DeLong wrote: > On iOS 4 there's a method on NSMutableURLConnection to do this (something > like setHTTPShouldUsePipelining:). If you need a solution for iOS 3.x, I'm >

Re: Initializing unichar variable with a human readable letter

2010-07-18 Thread Alastair Houghton
On 18 Jul 2010, at 09:38, vincent habchi wrote: > Since I use the unichar to make comparisons, I could also have initialized a > custom NSCharacterSet with "é", but, as we say here in France: "it's like > using a bulldozer to break a nut shell". It's worth perhaps pointing out that comparing wi

Re: NSInteger compare - Help Needed

2010-07-18 Thread Steve Wetzel
Thanks guys, that was the problem, There are so many little things to learn with Objective C. Steve Steve’s daily photo blog On Jul 17, 2010, at Jul 17:3:04 PM, Carter Allen wrote: > Steve, > > Have you tried changing "<<" in your code to simply "<"? That may work. > > - Carter Allen >

Re: NSInteger compare - Help Needed

2010-07-18 Thread Dave Carrigan
On Jul 18, 2010, at 10:21 AM, Steve Wetzel wrote: > Thanks guys, that was the problem, There are so many little things to learn > with Objective C. The difference between the < operator and the << operator is not confined to Objective-C; it's part of the C language. You should probably fin

Re: HTTP Pipe lining communication in iPhone application

2010-07-18 Thread Mike Abdullah
Er, he just told you how. Or are you asking how to do pipelining on iOS 3? (which was also pretty much answered) On 18 Jul 2010, at 17:08, SridharRao M wrote: > Any one have idea of implementing this. > > If any please share with me. > > > Thanks, > Sridhar. > > On Sat, Jul 17, 2010 at 10:00

Re: NSInteger compare - Help Needed

2010-07-18 Thread Sherm Pendley
On Sun, Jul 18, 2010 at 1:21 PM, Steve Wetzel wrote: > Thanks guys, that was the problem,  There are so many little things to learn > with Objective C. Out of curiosity, what programming language are you comparing it to? I've used *many* of them over the past twenty years, and I can't think of a

Removing sorting from NSTableView

2010-07-18 Thread Gideon King
Sorry if this is a dumb question, but when someone has clicked a column header to sort a table on that column, how do they get it back to its natural, unsorted order? In a certain other operating system, the standard behaviour seems to be that the sorting is three state: ascending/descending/un

Re: Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-18 Thread Jerry Krinock
On 2010 Jul 18, at 03:42, Darren Wheatley wrote: > Can anyone give me a pointer on how to encrypt (and use) the data in the Core > Data sql store of my Mac desktop app? > I've Googled for this, and while I find lots of information on encrypting > Core Data stores for iPhone apps, I can't find

Re: Data downloading performance

2010-07-18 Thread Rafael Cerioli
Le 18 juil. 2010 à 11:17, Ryan McGann a écrit : > > On Jul 18, 2010, at 7:42 AM, Rafael Cerioli wrote: > >> Le 18 juil. 2010 à 03:03, Ryan McGann a écrit : >>> Unfortunately, I can't find the sources at the moment as it was a while >>> ago, but there was an interesting discussion about this to

Re: Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-18 Thread Darren Wheatley
Hi, I'd assumed (possibly incorrectly?) that the iPhone encryption was hardware and/or iOS4 dependent. Is that not the case? Cheers Darren. On 18/07/2010 19:25, Jerry Krinock wrote: On 2010 Jul 18, at 03:42, Darren Wheatley wrote: Can anyone give me a pointer on how to encrypt (and use)

Re: Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-18 Thread Dave Carrigan
On Jul 18, 2010, at 11:25 AM, Jerry Krinock wrote: > Why does the iPhone information you found not apply to Mac apps? Because iOS 4 offers the Data Protection feature that is not available on Mac OS. As far as I know, there is no equivalent for Mac OS. You can try to roll your own encryptio

Managing Files with CoreData

2010-07-18 Thread Gordon Apple
I have a series of questions about using CoreData (iPad). Although CoreData is supposedly easy to use, I have found it anything but. It is extremely finicky and unforgiving. In fact, even with DTS support, I have never been able to get NSFetchedResultsController to work using a cache. I do have

Re: Managing Files with CoreData

2010-07-18 Thread Keary Suska
On Jul 18, 2010, at 2:20 PM, Gordon Apple wrote: > I have a series of questions about using CoreData (iPad). Although CoreData > is supposedly easy to use, I have found it anything but. I don't know where you got that--even the Core Data docs say it is an advanced API. I would say that once it

Re: Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-18 Thread Kyle Sluder
On Sun, Jul 18, 2010 at 3:42 AM, Darren Wheatley wrote: > Can anyone give me a pointer on how to encrypt (and use) the data in the > Core Data sql store of my Mac desktop app? My application has a data store > that on its own has a value, and I would like to provide at least a basic > level of pro

Re: Removing sorting from NSTableView

2010-07-18 Thread Graham Cox
On 19/07/2010, at 4:10 AM, Gideon King wrote: > I guess if there isn't already something built in, I may have to either > subclass something in the table header and make it three state, or maybe > override somewhere in the tableview or array controller where it sets the > sort descriptors or p

Re: Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-18 Thread Marcelo Alves
On 18/07/2010, at 20:22, Kyle Sluder wrote: > On Sun, Jul 18, 2010 at 3:42 AM, Darren Wheatley > wrote: >> Can anyone give me a pointer on how to encrypt (and use) the data in the >> Core Data sql store of my Mac desktop app? My application has a data store >> that on its own has a value, and I

Re: Encrypting data in a Core Data SQL store for a Mac desktop app

2010-07-18 Thread Kyle Sluder
On Sun, Jul 18, 2010 at 6:08 PM, Marcelo Alves wrote: > You can use the options "-nobrowse -mountrandom" on hdiutil to avoid > displaying the mounted image on Finder. Check the man page for some options. Interesting. I hadn't heard about -mountrandom before. That's helpful, but it only obscures

Re: Managing Files with CoreData

2010-07-18 Thread Gordon Apple
On 7/18/10 6:14 PM, "Keary Suska" wrote: > On Jul 18, 2010, at 2:20 PM, Gordon Apple wrote: > >> I have a series of questions about using CoreData (iPad). Although CoreData >> is supposedly easy to use, I have found it anything but. > > I don't know where you got that--even the Core Data do

Re: Managing Files with CoreData

2010-07-18 Thread Sean McBride
Gordon Apple (g...@ed4u.com) on 2010-07-18 16:20 said: >Question 2: In the File class, what should I override to delete the actual >associated file when a file object is deleted from the database? (I'm >currently doing that separately when deleting the managed object.) Does >NSManagedObject's "d

Re: Removing sorting from NSTableView

2010-07-18 Thread Scott Anguish
On Jul 18, 2010, at 8:03 PM, Graham Cox wrote: > > On 19/07/2010, at 4:10 AM, Gideon King wrote: > >> I guess if there isn't already something built in, I may have to either >> subclass something in the table header and make it three state, or maybe >> override somewhere in the tableview or a

Re: Managing Files with CoreData

2010-07-18 Thread mmalc Crawford
On Jul 18, 2010, at 1:20 pm, Gordon Apple wrote: > I have a series of questions about using CoreData (iPad). Although CoreData > is supposedly easy to use, I have found it anything but. > Per Keary's reply, the documentation makes it abundantly clear that it's not a beginner's tool. It comes w

Re: Removing sorting from NSTableView

2010-07-18 Thread Graham Cox
On 19/07/2010, at 3:12 PM, Scott Anguish wrote: > > On Jul 18, 2010, at 8:03 PM, Graham Cox wrote: >> There's not really any such thing as an "unsorted" order. >> > > I’d disagree. Perhaps in Core Data. But in the case of arrays there can be a > natural order. That's not unsorted, it's a nat

Missing resize control when NSScrollView.wantsLayer = YES?

2010-07-18 Thread Glen Low
When I set the wantsLayer property to YES on an NSScrollView in Interface Builder, the resulting scroll view is missing the resize control, although user resizing itself still works. In addition, the focus rings around text fields seem much thinner. Any way I can re- establish the resize con

Change size of NSMenuItem (offset from the top of status menu)

2010-07-18 Thread Nava Carmon
Hi, I create a custom view as a first menu item in status menu, which is being highlighted since i create it transparent, but there is a small offset from the top of the menu and my custom view when is highlighted doesn't look attached to the title. The question is whether there is a way to can