Re: asynchronous nsurlconnection in nsoperation

2012-03-23 Thread Ariel Feinerman
Andreas, thank you for your answer! What is the well? I believe the streaming work so we unarchive the this on the fly then write to url to avoid unnecessary actions with copy * * On Thu, Mar 22, 2012 at 4:10 PM, Andreas Grosam wrote: > > On Mar 21, 2012, at 4:59 PM, Ariel Feinerman wrote: > > >

Re: advice for creating these controls

2012-03-23 Thread Rick C.
This is what I would expect too. But drawSegment:inFrame:withView: doesn't override the cell drawing from what I know am I missing something? On Mar 23, 2012, at 2:19 PM, Seth Willits wrote: > On Mar 22, 2012, at 9:49 PM, Lee Ann Rucker wrote: > >> The button/popup combo could still be an NS

Re: asynchronous nsurlconnection in nsoperation

2012-03-23 Thread Steve Sisak
At 6:59 PM +0300 3/21/12, Ariel Feinerman wrote: I wish to insert an asynchronous NSURLConnection into non-concurrent NSOperation the reason is to allow necessarily unarchive actions on the streaming date so Look at (and steal code from) the LinkedImageFetcher sample:

Binding and multithreading

2012-03-23 Thread Jonathan Taylor
I have been struggling with a problem which I think I have eventually realised is down to me not handling multithreading issues properly. The situation is I have some computationally-demanding code that is running in a separate thread. This has input parameters and state variables associated wit

can't get NSTextFinder to show the find panel

2012-03-23 Thread Eric Slosser
I'm trying to use the NSTextFinder object on Lion, from an app whose base SDK is Tiger. I've created an instance of NSTextFinder, called its -setClient: method, my client implements all methods of the NSTextFinderClient (using -string). My client does _not_ do the NSTextFinderBarContainer prot

Re: Why so many public properties all up in my grizzle?

2012-03-23 Thread Sebastian Celis
On Thu, Mar 22, 2012 at 6:39 PM, G S wrote: > On Mon, Mar 19, 2012 at 1:35 PM, Sebastian Celis > wrote: > >> 1) Embrace @properties...Exposing _ivars in header files is >> gross. You never want people to access them directly, so don't make >> those declarations public at all. >> > >> 2) Technicall

UITableView lazy instantiation question

2012-03-23 Thread Alex Zavatone
While working on practice coding exercises last night, I was trying what I thought should be a simple project. I wanted to acquire some data, assign it as the datasource for a UITableView, then select a value in that, pass off the selected value to a holder of data, then push a new view for ano

Re: can't get NSTextFinder to show the find panel

2012-03-23 Thread Fritz Anderson
On 23 Mar 2012, at 8:18 AM, Eric Slosser wrote: > I'm trying to use the NSTextFinder object on Lion, from an app whose base SDK > is Tiger. … > What am I doing wrong? You're trying to use the NSTextFinder object on Lion, from an app whose base SDK is Tiger. Xcode is sensitive to what the base S

Re: UITableView lazy instantiation question

2012-03-23 Thread Luke Hiesterman
If you use a UITableViewController, the controller automatically creates a UITableView instance and sets it to self.view. Luke On Mar 23, 2012, at 8:02 AM, Alex Zavatone wrote: > While working on practice coding exercises last night, I was trying what I > thought should be a simple project. I

Re: UITableView lazy instantiation question

2012-03-23 Thread Fritz Anderson
On 23 Mar 2012, at 10:02 AM, Alex Zavatone wrote: > I'm expecting that I should look for a UITableView alloc somewhere, but well, > that's obviously not the case. Though the TVC is being created in the > AppDelegate, I'm expecting to see a visible declaration of the UITableView, > and am not c

Re: UITableView lazy instantiation question

2012-03-23 Thread Alex Zavatone
On Mar 23, 2012, at 11:24 AM, Luke Hiesterman wrote: > If you use a UITableViewController, the controller automatically creates a > UITableView instance and sets it to self.view. Do you know when this gets assigned? Yeah, that's what I did, but I never got a table view until I added those line

Re: UITableView lazy instantiation question

2012-03-23 Thread Luke Hiesterman
The table view is created in UITableViewController's implementation of loadView. If the table view controller was instantiated via -initWithNibName:bundled: it will load the table view from the nib. Otherwise it will load it with alloc/init. If you were overriding loadView and not calling super

Re: asynchronous nsurlconnection in nsoperation

2012-03-23 Thread Andreas Grosam
On Mar 23, 2012, at 11:25 AM, Steve Sisak wrote: > At 6:59 PM +0300 3/21/12, Ariel Feinerman wrote: >> I wish to insert an asynchronous NSURLConnection into non-concurrent >> NSOperation the reason is to allow necessarily unarchive actions on the >> streaming date so > > Look at (and steal code

Re: UITableView lazy instantiation question

2012-03-23 Thread Alex Zavatone
On Mar 23, 2012, at 11:33 AM, Fritz Anderson wrote: > On 23 Mar 2012, at 10:02 AM, Alex Zavatone wrote: > >> I'm expecting that I should look for a UITableView alloc somewhere, but >> well, that's obviously not the case. Though the TVC is being created in the >> AppDelegate, I'm expecting to

Re: UITableView lazy instantiation question

2012-03-23 Thread Alex Zavatone
On Mar 23, 2012, at 11:42 AM, Luke Hiesterman wrote: > The table view is created in UITableViewController's implementation of > loadView. If the table view controller was instantiated via > -initWithNibName:bundled: it will load the table view from the nib. Otherwise > it will load it with all

Re: can't get NSTextFinder to show the find panel

2012-03-23 Thread Eric Slosser
On Mar 23, 2012, at 11:05 AM, Fritz Anderson wrote: > You're trying to use the NSTextFinder object on Lion, from an app whose base > SDK is Tiger. Xcode is sensitive to what the base SDK is. I don't think that's the issue because NSTextView, when called from within my app, uses instances of NST

Re: can't get NSTextFinder to show the find panel

2012-03-23 Thread Kevin Perry
The public NSTextFinder API doesn't provide a way for you to access the old-style find panel. -KP On Mar 23, 2012, at 6:18 AM, Eric Slosser wrote: > I'm trying to use the NSTextFinder object on Lion, from an app whose base SDK > is Tiger. > > I've created an instance of NSTextFinder, called

Re: Missing header files/folders?

2012-03-23 Thread Eric Wing
On 3/22/12, Chris Hanson wrote: > On Mar 22, 2012, at 11:24 AM, Eric Wing wrote: > >>> Correct. Note that when setting the path, you can get away with just >>> pointing to the copy of Xcode that you'd like to bless: >>> >>> sudo xcode-select -switch /Applications/Xcode.app >> >> Interesting, b

Re: advice for creating these controls

2012-03-23 Thread Seth Willits
On Mar 23, 2012, at 3:24 AM, Rick C. wrote: > This is what I would expect too. But drawSegment:inFrame:withView: doesn't > override the cell drawing from what I know am I missing something? That'll draw the interior of the segment. The background is drawn by drawWithFrame:inView:, which then

Re: advice for creating these controls

2012-03-23 Thread Lee Ann Rucker
On Mar 23, 2012, at 3:24 AM, Rick C. wrote: > This is what I would expect too. But drawSegment:inFrame:withView: doesn't > override the cell drawing from what I know am I missing something? That draws the cell content, not the border or separator. To change that, subclass drawWithFrame:inView

Re: NSDateFormatter not working on iOS 5.

2012-03-23 Thread Heath Borders
> I will need to think about the best current workaround for this, but right > now I am (and have been) swamped, sorry. I've tried the following code and it seems to work for me. Can you think of any reason why it might not work? As I understand from the unicode standard [1], V is supposed to p

Binding and multithreading

2012-03-23 Thread Jan E. Schotsman
Jonathan Taylor wrote: I have been struggling with a problem which I think I have eventually realised is down to me not handling multithreading issues properly. The situation is I have some computationally-demanding code that is running in a separate thread. This has input parameters and

Re: Binding and multithreading

2012-03-23 Thread Dave Fernandes
See the Cocoa Design Patterns doc: "The Receptionist Design Pattern in Practice A KVO notification invokes the observeValueForKeyPath:ofObject:change:context: method implemented by an observer. If the change to the property occurs on a secondary thread, theobserveValueForKeyPath:ofObject:change:c

NSDocument disc undo stack

2012-03-23 Thread Steven
Hello, Where is the correct place to store an on-disc undo stack associated with a NSDocument instance ? The stack may contain several potentially large files so we don't want them to occupy memory. For a compound document the stack could reside in a directory NSFileWrapper. For a single file do

Re: Binding and multithreading

2012-03-23 Thread Jens Alfke
On Mar 23, 2012, at 3:32 PM, Jan E. Schotsman wrote: > I use KVO for this. Have your main thread observe the state variables > (declared as properties) and update the GUI in your > observeValueForKeyPath:ofObject:change:context: method. That’s just going to call observeValue… on whatever threa

Re: advice for creating these controls

2012-03-23 Thread Rick C.
Thanks again to everyone much appreciated! On Mar 24, 2012, at 2:44 AM, Lee Ann Rucker wrote: > > On Mar 23, 2012, at 3:24 AM, Rick C. wrote: > >> This is what I would expect too. But drawSegment:inFrame:withView: doesn't >> override the cell drawing from what I know am I missing something?

Re: NSDocument disc undo stack

2012-03-23 Thread Graham Cox
You can read and write to the Application Support folder. But FILES in an Undo stack? That makes little sense to me. If you want to undo changes to a file, store the changes or the command that will cause the changes in the undo stack. If you are changing the organisation of files on disc then

display a section of view zoomed

2012-03-23 Thread Timothy Reaves
I have a subclass of NSView, and draw into using CoreGraphics. I'd like to add a second view (not NSScrollView) to display a zoomed section of the primary view. I thought I had a sample project for this bookmarked, but can no longer find it. Would anyone be able to point me in the correct direct

Re: display a section of view zoomed

2012-03-23 Thread Jens Alfke
On Mar 23, 2012, at 6:05 PM, Timothy Reaves wrote: > I have a subclass of NSView, and draw into using CoreGraphics. I'd like to > add a second view (not NSScrollView) to display a zoomed section of the > primary view. You’ll need a second instance of the same view class, displaying the same m

syslog with strings?

2012-03-23 Thread Prime Coderama
Trying to write out syslog entries containing strings but they don't register. E.g. // where person.name is an NSSTring syslog(LOG_NOTICE, "Some string %@", person.name); ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: syslog with strings?

2012-03-23 Thread Peter Teeson
On 2012-03-23, at 10:08 PM, Prime Coderama wrote: > Trying to write out syslog entries containing strings but they don't register. > > E.g. > > // where person.name is an NSSTring > syslog(LOG_NOTICE, "Some string %@", person.name); > ___ > > Cocoa-d

Re: syslog with strings?

2012-03-23 Thread Ken Thomases
On Mar 23, 2012, at 9:08 PM, Prime Coderama wrote: > Trying to write out syslog entries containing strings but they don't register. > > E.g. > > // where person.name is an NSSTring > syslog(LOG_NOTICE, "Some string %@", person.name); The %@ format specifier is a Cocoa-ism. (Well, it's also und

GLKit's GLKBaseEffect leaking?

2012-03-23 Thread Scott Andrew
Has anyone been noticing that GLKit's base effect is leaking when calling prepareToDraw? There are repeated leaks in GLKShaderBlockNode. It seems that this may be new to 5.1 SDK. I could have sworn i did a check with 5.0. ___ Cocoa-dev mailing list (Co