Re: how to deploy the sqlite file in my Cocoa application installation

2010-07-17 Thread Wayne Shao
Thanks! That is very helpful. I have added a data file in my project as you suggested. I come from the linux world, where this sort of things are done in installation script or package post-install script. I have never released an App on Mac. Is there any concept of App post install script? I jus

How do I refresh NSTableView after programmatically changing bindings on a dataCell

2010-07-17 Thread François Beausoleil
Hi all, I have an NSPopUpButton which holds the names of keys I want to display in an NSTableView. A picture is worth a thousand words: http://skitch.com/francoisb/dc63m/nstableview-redisplay I have an action on my controller which rebinds the NSTableView's dataCell for the single column to a

Re: Data downloading performance

2010-07-17 Thread Ken Thomases
On Jul 17, 2010, at 12:36 AM, Rafael Cerioli wrote: > Le 16 juil. 2010 à 18:56, Kyle Sluder a écrit : > >> On Jul 16, 2010, at 3:46 PM, Rafael Cerioli wrote: >> >>> - using a NSURLConnection seams nice, but as it calls its delegate >>> (-connection:didReceiveData:) on the main thread, it has t

Re: How do I refresh NSTableView after programmatically changing bindings on a dataCell

2010-07-17 Thread Ken Thomases
On Jul 16, 2010, at 10:16 PM, François Beausoleil wrote: > I have an NSPopUpButton which holds the names of keys I want to display in an > NSTableView. A picture is worth a thousand words: > http://skitch.com/francoisb/dc63m/nstableview-redisplay > > I have an action on my controller which rebi

Re: Data downloading performance

2010-07-17 Thread Mike Abdullah
On 17 Jul 2010, at 07:02, Kyle Sluder wrote: > On Fri, Jul 16, 2010 at 10:36 PM, Rafael Cerioli > wrote: >> I guess I had something wrong, NSURLConnection does not do anything in a >> background thread. It just operates in the main thread but "asynchronously" >> thanks to the run loop. > > Well

Re: Where did the icon come from?

2010-07-17 Thread Eric Gorr
Quite true, but in this case, I am pretty sure that is not what is happening. If my assumptions about what the code below is doing are correct, it will provide the debugging information I need. Fortunately, I have physical access to the machine where the problem is occurring and can verify the

Re: How do I refresh NSTableView after programmatically changing bindings on a dataCell

2010-07-17 Thread François Beausoleil
Hey Ken, You were absolutely right. I bound NSTableColumn in Interface Builder, so I had to update that binding. I haven't tried to unbind: first, since it works just fine now. Thanks! François Le 2010-07-17 à 06:02, Ken Thomases a écrit : > On Jul 16, 2010, at 10:16 PM, François Beausoleil w

Re: how to deploy the sqlite file in my Cocoa application installation

2010-07-17 Thread David Reed
On Jul 17, 2010, at 12:32 AM, Wayne Shao wrote: > Thanks! That is very helpful. I have added a data file in my project as you > suggested. > > I come from the linux world, where this sort of things are done in > installation script or package post-install script. > I have never released an App

Re: Data downloading performance

2010-07-17 Thread Rafael Cerioli
Le 17 juil. 2010 à 06:38, Mike Abdullah a écrit : > > On 17 Jul 2010, at 07:02, Kyle Sluder wrote: > >> On Fri, Jul 16, 2010 at 10:36 PM, Rafael Cerioli >> wrote: >>> I guess I had something wrong, NSURLConnection does not do anything in a >>> background thread. It just operates in the main th

HTTP Pipe lining communication in iPhone application

2010-07-17 Thread SridharRao M
Hi Group, I want to implement HTTP Pipe lining communication in my iphone application for web images downloading into my application. If any one implemented this already please suggest me how to implement this in iPhone. Thanks in advance. Regards, Sridhar. _

Re: Data downloading performance

2010-07-17 Thread Ken Thomases
On Jul 17, 2010, at 10:38 AM, Rafael Cerioli wrote: > Just out of curiosity, if there is communication between threads, even with > runloops, there must be a lock at some point ? To schedule something in the > main thread's runloop, you must lock the runloop don't you ? No. There are lockless

Re: HTTP Pipe lining communication in iPhone application

2010-07-17 Thread Dave DeLong
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 afraid I've been trying to find one for a long time, and short of writing pipelining yourself, I don't think there is one. Dave Sent from my iPh

Re: Core Data: many-to-many relationships not being saved

2010-07-17 Thread David Catmull
I finally found the answer to this problem. It comes from the way I was setting the relationship. I was calling: [[expense valueForKey:@"tags"] addObject:tag]; ..which apparently is too direct. What I need is something more like: [[expense mutableSetValueForKey:@"tags"] addObject:tag]; I

Link Error: following -F not found

2010-07-17 Thread Joseph Ayers
I get a link error: ld: warning: directory '/Users/lobster/Programming/Roboplasm/../../../core-plot/framework/build/Debug' following -F not found I can't find a reference to core-plot anywhere in the code. How do I interpret: /../../../ in the message? Thanks, __

Re: Link Error: following -F not found

2010-07-17 Thread Rick Genter
On Jul 17, 2010, at 10:45 AM, Joseph Ayers wrote: > > I get a link error: > > ld: warning: directory > '/Users/lobster/Programming/Roboplasm/../../../core-plot/framework/build/Debug' > following -F not found > > I can't find a reference to core-plot anywhere in the code. How do I > interpre

Re: Link Error: following -F not found

2010-07-17 Thread Sherm Pendley
On Sat, Jul 17, 2010 at 1:45 PM, Joseph Ayers wrote: > > ld: warning: directory > '/Users/lobster/Programming/Roboplasm/../../../core-plot/framework/build/Debug' > following -F not found > > I can't find a reference to core-plot anywhere in the code. It's not coming from your code, it's a linke

WebView and Headers

2010-07-17 Thread The Geezer
I have an application I wrote for testing which has a WebView. Everything works fine, however, I would like to be able to log the HTTP Header Fields "Cookie" and "Set-Cookie". I seem to be able to access and log every http header except the cookie headers. They don't even show up using [(NSURL

NSInteger compare - Help Needed

2010-07-17 Thread Steve Wetzel
Hi all, I am new to Cocoa programming and am trying to do something that I thought was straightforward but not working. I am using the tag field of a button to tell me what button is pushed. This code does not work - (IBAction) numberPressed:(id)sender { NSLog(@"Sender tag is:%d", [se

Re: NSInteger compare - Help Needed

2010-07-17 Thread Greg Guerin
Steve Wetzel wrote: if ([sender tag] << 10) { The << operator is LEFT-SHIFT. The < operator is LESS-THAN. If you want to understand what your code is doing, think about what happens when the numbers 0-9 are left-shifted by 10 bits. -- GG

How to change login/password for proxy in System Preferences?

2010-07-17 Thread Tomas Kolar - Audiffex
Hi all, I'd like to change proxy settings in System Preferences (Network/ Advanced.../Proxies) programatically. I do not have problem to change server and port, and also to disable/enable usage of proxy server for required protocols – all these settings can be easilly done with SystemConfi

Re: Data downloading performance

2010-07-17 Thread Rafael Cerioli
Le 17 juil. 2010 à 12:19, Ken Thomases a écrit : > On Jul 17, 2010, at 10:38 AM, Rafael Cerioli wrote: > >> Just out of curiosity, if there is communication between threads, even with >> runloops, there must be a lock at some point ? To schedule something in the >> main thread's runloop, you m

Initializing unichar variable with a human readable letter

2010-07-17 Thread vincent habchi
Hi there, I have a very simple problem: I'd like to affect to a unichar variable the value of the glyph é (or any non-ascii character). If I (naively) write: "unichar foo = 'é';", I get a warning from the compiler about multibyte const and it does not work. I'd like to avoid twisted constructs

Re: WebView and Headers

2010-07-17 Thread Keary Suska
On Jul 17, 2010, at 1:16 PM, The Geezer wrote: > I have an application I wrote for testing which has a WebView. > Everything works fine, however, I would like to be able to log the HTTP > Header Fields "Cookie" and "Set-Cookie". > I seem to be able to access and log every http header except the c

Re: Data downloading performance

2010-07-17 Thread Ken Thomases
On Jul 17, 2010, at 3:27 PM, Rafael Cerioli wrote: > Ok, ok busted : I'm not much experienced ! That's precisely why I was > writing to that list in the first place : trying to get knowledge more > concrete than my intuitions, I thought that was the point. Yes, but you pushed back whenever pe

Re: Initializing unichar variable with a human readable letter

2010-07-17 Thread Ken Thomases
On Jul 17, 2010, at 3:58 PM, vincent habchi wrote: > I have a very simple problem: I'd like to affect to a unichar variable the > value of the glyph é (or any non-ascii character). > > If I (naively) write: "unichar foo = 'é';", I get a warning from the compiler > about multibyte const and it d

Re: WebView and Headers

2010-07-17 Thread The Geezer
I have tried the [(NSURLRequest *)request allHeaderFields] in every delegate which has request as a parameter but still get everything but the cookie. I get a warning on the compile and an error on the execute if I try allHeaderFields or valueForHTTPHeaderField on a NSURLResponse. But I am

Add Tick Mark in NSCombobox List

2010-07-17 Thread Nishad Peruvana
Hi All, 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. Thanks In Advance, Nishad Kumar P DISCLAIMER: -

Re: NSInteger compare - Help Needed

2010-07-17 Thread Carter Allen
Steve, Have you tried changing "<<" in your code to simply "<"? That may work. - Carter Allen On Jul 17, 2010, at 1:58 PM, Steve Wetzel wrote: > Hi all, > > I am new to Cocoa programming and am trying to do something that I thought > was straightforward but not working. I am using the tag fi

Combining two editable values into one table column

2010-07-17 Thread Gideon King
I have two situations where I want to combine two editable values into one table column in an NSTableView: - one is a checkbox and date picker (so you can check if you want to specify a date, and edit the value if the checkbox is checked), - and the other is a text field and a popup button whe

Re: Link Error: following -F not found

2010-07-17 Thread Graham Cox
On 18/07/2010, at 3:45 AM, Joseph Ayers wrote: > > I get a link error: > > ld: warning: directory > '/Users/lobster/Programming/Roboplasm/../../../core-plot/framework/build/Debug' > following -F not found Have you recently updated Xcode?I started getting this error on the latest version. It

Re: WebView and Headers

2010-07-17 Thread The Geezer
Keary, Although I still get an xcode warning about NSURLResponse not responding to "allHeaderFields" I DID get a response AND a Set-Cookie when I saved the response and did the "allHeaderFields" in the "didFinishLoadingFromDataSource" delegate. So you were right about the timing. Now I w

Re: Add Tick Mark in NSCombobox List

2010-07-17 Thread Kyle Sluder
On Sat, Jul 17, 2010 at 2:20 AM, Nishad Peruvana wrote: > 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. NSComboBoxes do not behave this way. What is the context for wa

Binding to title of NSButtonCell in a table view

2010-07-17 Thread Gideon King
Hi, I'm having trouble doing something I would have thought would be very simple. I have some columns in an NSTableView where I need to display NSButtonCells, and I need the titles to be dynamic as the underlying data (in coredata) changes. I can bind the value to an NSTextFieldCell and it all

Re: Binding to title of NSButtonCell in a table view

2010-07-17 Thread Quincey Morris
On Jul 17, 2010, at 21:45, Gideon King wrote: > I have some columns in an NSTableView where I need to display NSButtonCells, > and I need the titles to be dynamic as the underlying data (in coredata) > changes. I can bind the value to an NSTextFieldCell and it all works just > fine, but when I

Re: Binding to title of NSButtonCell in a table view

2010-07-17 Thread Gideon King
Thanks Quincey - here's the code: [[resultsTableView tableColumnWithIdentifier:@"startDateColumnIdentifier"] bind:@"title" toObject:resultsArrayController withKeyPath:@"arrangedObjects.topic.taskStartStringForPanel" options:nil]; If the cell for the column is an NSTextFieldCell, and th

Re: Binding to title of NSButtonCell in a table view

2010-07-17 Thread Quincey Morris
On Jul 17, 2010, at 23:21, Gideon King wrote: > [[resultsTableView > tableColumnWithIdentifier:@"startDateColumnIdentifier"] bind:@"title" > toObject:resultsArrayController > withKeyPath:@"arrangedObjects.topic.taskStartStringForPanel" options:nil]; > > If the cell for the column is an N