Re: Task dispatching

2011-09-14 Thread jonat...@mugginsoft.com
On 13 Sep 2011, at 22:53, Scott Ribe wrote: > On Sep 13, 2011, at 3:07 PM, jonat...@mugginsoft.com wrote: > >> Are you sure about this? > > Yes. From man fork: > > There are limits to what you can do in the child process. To be totally > safe you should restrict yourself to only exec

Re: Responder-Chain question.

2011-09-14 Thread Motti Shneor
Thanks Conrad (and all others). I tried to simplify my issue to get clearer answers, but It seems I need to disclose more of my design. 1. I thoroughly read (and tried) most everything around this subject, including Matt Ghallager's , Katie-Dev and "The Mental Blog" attempts on better NSViewC

Re: NSInvocationOperations mysteriously whacked out of NSOperationQueue

2011-09-14 Thread Jerry Krinock
On 2011 Aug 24, at 23:30, Ken Thomases wrote: > At a guess, the NSOperationQueue may be dequeuing operations using something > like -[NSMutableArray removeObject:] instead of -[NSMutableArray > removeObjectIdenticalTo:]. Thus, it is depending on -isEqual:. I further > guess that NSInvocation

Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Andreas Grosam
Dear List, I've implemented a simple "Synchronous Channel" using dispatch lib. A "synchronous channel" is an actor in which each producer offering an item (via a put operation) must wait for a consumer to take this item (via a get operation), and vice versa. The following is probably the simple

Cocoaheads - Silicon Valley September meeting

2011-09-14 Thread teddfox
A HUGE thanks to David P. Oster for again, setting up the room arrangements for us.   September 15 7pm to 9pm. Bodega Bay Tech Talk, in building 1950 This should open a Google Map showing building 1950, http://maps.google.com/maps?q=bodega+bay+room,+google,+mountain+view,+CA&hl=en&ll=37.42204

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Dave Zarzycki
Andreas, This is probably not the answer you're looking for, but when we find coding patterns like this in the OS, we advice developers to replace this pattern with a GCD queue and use either dispatch_sync() or dispatch_async(). The reason for this advice is because parking threads to wait for

How to subscribe to Xcode users list?

2011-09-14 Thread Gerriet M. Denkmann
Several Apple pages have links to or , but when I try to open these pages I get: "The page you tried was not found. You may have used an outdated link or may have typed the address (URL) incorrectly. You migh

Re: How to subscribe to Xcode users list?

2011-09-14 Thread Dave DeLong
It looks like the page has been moved: http://lists.apple.com/mailman/listinfo2 Dave On Sep 14, 2011, at 8:10 AM, Gerriet M. Denkmann wrote: > Several Apple pages have links to > or > , but when I try to op

Re: How to subscribe to Xcode users list?

2011-09-14 Thread Tim Schröder
Have you tried http://lists.apple.com/mailman/listinfo2/xcode-users ? Tim Am 14.09.2011 um 17:10 schrieb Gerriet M. Denkmann: > Several Apple pages have links to > or > , but when I try to open these pag

Re: How to subscribe to Xcode users list?

2011-09-14 Thread Andy Lee
Yup, I sent feedback about it a while back, to both the official feedback address and a non-official person. If you start from http://lists.apple.com and drill down I think you'll get where you want (though I have not tested subscribing). There was briefly some churn between listinfo and listin

Re: How to subscribe to Xcode users list?

2011-09-14 Thread Gerriet M. Denkmann
On 14 Sep 2011, at 22:26, Andy Lee wrote: > Yup, I sent feedback about it a while back, to both the official feedback > address and a non-official person. If you start from http://lists.apple.com > and drill down I think you'll get where you want (though I have not tested > subscribing). The

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Andreas Grosam
On Sep 14, 2011, at 4:20 PM, Dave Zarzycki wrote: > Andreas, > > This is probably not the answer you're looking for, but when we find coding > patterns like this in the OS, we advice developers to replace this pattern > with a GCD queue and use either dispatch_sync() or dispatch_async(). The

UISplitViewController + UIView on UIWindow

2011-09-14 Thread Flavio ceolin
Hello folks, I'm trying to put an UIView (such as footer) on an UIWindow below the UISplitViewController, but until now I had no success. Basically, I'm doing it inside the didFinishLauching method: self.window.rootViewController = self.mySplitViewController; self.window.rootViewController.view.

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Kyle Sluder
On Wed, Sep 14, 2011 at 9:38 AM, Andreas Grosam wrote: > A "Synchronous Channel" (or Synchronous Queue) is a well known pattern used > in multithreading. Basically, it is used to "hand off" objects from one > thread to another, with the requirement that the "producer" waits until a > "consumer"

NSURLRequest timing

2011-09-14 Thread lcerveau
Hi I have a question regarding time a NSURLRequest/NSURLConnection is taking : I do the following - When creating/launching the request I take a timestamp, in the delegate method  - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response I take another one.

Re: UISplitViewController + UIView on UIWindow

2011-09-14 Thread David Duncan
On Sep 14, 2011, at 10:06 AM, Flavio ceolin wrote: > Hello folks, > > I'm trying to put an UIView (such as footer) on an UIWindow below the > UISplitViewController, but until now I had no success. This is expected, as the split view controller expects to own the entire window's content area. E

Re: UISplitViewController + UIView on UIWindow

2011-09-14 Thread Flavio ceolin
Thanks for the reply David. So, do you know if there is another way to do something like that ? On Wed, Sep 14, 2011 at 2:31 PM, David Duncan wrote: > On Sep 14, 2011, at 10:06 AM, Flavio ceolin wrote: > > > Hello folks, > > > > I'm trying to put an UIView (such as footer) on an UIWindow below t

Re: UISplitViewController + UIView on UIWindow

2011-09-14 Thread David Duncan
Check the WWDC videos from this year, specifically the ones on View controllers. On Sep 14, 2011, at 10:44 AM, Flavio ceolin wrote: > Thanks for the reply David. > > So, do you know if there is another way to do something like that ? > > On Wed, Sep 14, 2011 at 2:31 PM, David Duncan wrote: > O

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Dave Zarzycki
On Sep 14, 2011, at 9:38 AM, Andreas Grosam wrote: > > On Sep 14, 2011, at 4:20 PM, Dave Zarzycki wrote: > >> Andreas, >> >> This is probably not the answer you're looking for, but when we find coding >> patterns like this in the OS, we advice developers to replace this pattern >> with a GCD

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Kyle Sluder
On Wed, Sep 14, 2011 at 11:00 AM, Dave Zarzycki wrote: > Dispatch queues exist to solve both the synchronous and asynchronous > producer/consumer pattern. If you want the producer to wait until the > consumer is done, then use dispatch_sync() instead of dispatch_async(): > >        x = create_so

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Andreas Grosam
On Sep 14, 2011, at 7:18 PM, Kyle Sluder wrote: > On Wed, Sep 14, 2011 at 9:38 AM, Andreas Grosam wrote: >> A "Synchronous Channel" (or Synchronous Queue) is a well known pattern used >> in multithreading. Basically, it is used to "hand off" objects from one >> thread to another, with the requ

Re: Responder-Chain question.

2011-09-14 Thread Matt Neuburg
On Wed, 14 Sep 2011 14:01:17 +0300, Motti Shneor said: >1. Why Apple says "After the Delegate" when delegate isn't a responder, and is >never in the responder chain. See: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/EventArchitecture/EventArchitecture.ht

Re: What does CMDeviceMotion do if there is no gyro?

2011-09-14 Thread Matt Neuburg
On Tue, 13 Sep 2011 14:39:29 -0700, James Walker said: >The CMDeviceMotion Class Reference says "Because Core Motion is able to >track a device’s attitude using both the gyroscope and the >accelerometer, it can differentiate between gravity and user >acceleration." But what does it do if the d

Re: What does CMDeviceMotion do if there is no gyro?

2011-09-14 Thread James Walker
On 9/14/2011 11:46 AM, Matt Neuburg wrote: On Tue, 13 Sep 2011 14:39:29 -0700, James Walker said: The CMDeviceMotion Class Reference says "Because Core Motion is able to track a device’s attitude using both the gyroscope and the accelerometer, it can differentiate between gravity and user accel

Re: Responder-Chain question.

2011-09-14 Thread Quincey Morris
On Sep 14, 2011, at 04:01 , Motti Shneor wrote: > On 9/13/11 5:01 AM, Motti Shneor wrote: >> Hello everyone. >> >> I need to insert some controllers I have into the responder chain, >> in such a place that their functionality (IBActions and menu >> validation) will be available regardless of spec

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Andreas Grosam
On Sep 14, 2011, at 8:00 PM, Dave Zarzycki wrote: > Dispatch queues exist to solve both the synchronous and asynchronous > producer/consumer pattern. If you want the producer to wait until the > consumer is done, then use dispatch_sync() instead of dispatch_async(): > > x = create_someth

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Dave Zarzycki
On Sep 14, 2011, at 12:08 PM, Andreas Grosam wrote: > > On Sep 14, 2011, at 8:00 PM, Dave Zarzycki wrote: > >> Dispatch queues exist to solve both the synchronous and asynchronous >> producer/consumer pattern. If you want the producer to wait until the >> consumer is done, then use dispatch_sy

"gdb could not unwind past this frame"

2011-09-14 Thread dct
While debugging, I've experienced an intermitent error, "gdb could not unwind past this frame". I isolated this error occurance to a call to a C function which was the 2nd call to this particular function within a specific Obj-C method. The C function in question returns an integer however the

Re: Implementing a "Synchronous Channel" with dispatch

2011-09-14 Thread Andreas Grosam
On Sep 14, 2011, at 9:39 PM, Dave Zarzycki wrote: > > That's fine. Your block can still get at your object's instance variables: > > - (void)doSomething > { > x = create_something(); > dispatch_sync(consumer_q, ^{ > _prev_state_ivar = do_something_with(_prev_state_ivar

Re: NSURLRequest timing

2011-09-14 Thread Jerry Krinock
On 2011 Sep 14, at 10:21, lcerveau wrote: > - At the same time I use a software like HTTPScoop to look on how it is > timing all this. Time are always différent like 0.05 seconds. I'm not familiar with HTTPScoop, but 50 milliseconds is typical for a single ping on the internet. > > So nearly

How to Support in-line attachments in NStextView

2011-09-14 Thread Sandeep Mohan Bhandarkar
Hi All, I have a requirement where in I need to create a NSTextView that can support in-line attachments. the feature that I am looking for can be summed up in the following points 1) Ability to drag and drop files images etc onto the NSTextView. 2) Displaying one placeholder image for any file