Re: Network and DarkWake

2012-09-01 Thread Gerriet M. Denkmann
On 2 Sep 2012, at 12:34, Matt Patenaude wrote: > You might consider using SCNetworkReachability to monitor when the > availability of time.apple.com changes. > > https://developer.apple.com/library/mac/#documentation/SystemConfiguration/Reference/SCNetworkReachabilityRef/Reference/reference.ht

Re: Network and DarkWake

2012-09-01 Thread Matt Patenaude
You might consider using SCNetworkReachability to monitor when the availability of time.apple.com changes. https://developer.apple.com/library/mac/#documentation/SystemConfiguration/Reference/SCNetworkReachabilityRef/Reference/reference.html -Matt On Sep 2, 2012, at 1:23 AM, "Gerriet M. Denkma

Re: Network and DarkWake

2012-09-01 Thread Gerriet M. Denkmann
On 31 Aug 2012, at 23:57, Marco S Hyman wrote: > On Aug 31, 2012, at 6:04 AM, Gerriet M. Denkmann wrote: > >> But often (not always) my app (while in DarkWake) gets: >> Error getaddrinfo(time.apple.com, ntp) -> nodename nor servname provided, or >> not known > > I believe its a race conditio

Re: How to insert a "screen-only" character in an NSTextView?

2012-09-01 Thread Kyle Sluder
On Sep 1, 2012, at 8:35 PM, Koen van der Drift wrote: > > On Sep 1, 2012, at 11:26 PM, Kyle Sluder wrote: > >> Why don't you just perform layout and ask the layout manager for the text it >> used? > > I'd like to make the text display in a column that is exactly x characters > width. Keep

Re: How to insert a "screen-only" character in an NSTextView?

2012-09-01 Thread Koen van der Drift
On Sep 1, 2012, at 11:26 PM, Kyle Sluder wrote: > Why don't you just perform layout and ask the layout manager for the text it > used? I'd like to make the text display in a column that is exactly x characters width. I thought I need to control that with setting the size of a textcontainer?

Re: How to insert a "screen-only" character in an NSTextView?

2012-09-01 Thread Kyle Sluder
On Sep 1, 2012, at 8:22 PM, Koen van der Drift wrote: > Not yet there, but as a follow up question, how do I get the width of a > monospaced font? I need this to calculate the rect that a textcontainer needs > for x amount of fonts. Why don't you just perform layout and ask the layout manager

Re: How to insert a "screen-only" character in an NSTextView?

2012-09-01 Thread Koen van der Drift
Not yet there, but as a follow up question, how do I get the width of a monospaced font? I need this to calculate the rect that a textcontainer needs for x amount of fonts. - Koen. On Aug 31, 2012, at 4:55 PM, Ross Carter wrote: > Or a custom NSGlyphGenerator. There was a WWDC session on thi

Re: NSDocument package saving invalidates wrapper? Options?

2012-09-01 Thread Mike Abdullah
On 23 Aug 2012, at 14:12, Markus Spoettl wrote: > I have an NSDocument based app that has uses packages do to store a complex > structure. > > When I open a document, I keep the wrapper around handed to the document in > > -readFromFileWrapper:ofType:error: > > in order to lazy-load parts of

Re: Window Title drop-down menu in 10.8

2012-09-01 Thread James Merkel
On Sep 1, 2012, at 10:30 AM, Mike Abdullah wrote: > > On 16 Aug 2012, at 14:52, James Merkel wrote: > >> >> On Aug 15, 2012, at 11:25 PM, Mike Abdullah >> wrote: >> >>> >>> On 14 Aug 2012, at 05:29, James Merkel wrote: >>> In 10.8, what capabilities does a window need in order for

Re: Docs describing in-code loading of standard media icons?

2012-09-01 Thread Kyle Sluder
On Sep 1, 2012, at 11:39 AM, Erik Stainsby wrote: > I am building out custom tableCellViews and have a case in which I would like > to show the NSUser silhouette from the standard media library. > > Is there a method for doing this in code? The Xcode docs organizer is not > providing anything

Docs describing in-code loading of standard media icons?

2012-09-01 Thread Erik Stainsby
I am building out custom tableCellViews and have a case in which I would like to show the NSUser silhouette from the standard media library. Is there a method for doing this in code? The Xcode docs organizer is not providing anything related. TIA Erik Stainsby erik.stain...@roaringsky.ca __

Re: Window Title drop-down menu in 10.8

2012-09-01 Thread Mike Abdullah
On 16 Aug 2012, at 14:52, James Merkel wrote: > > On Aug 15, 2012, at 11:25 PM, Mike Abdullah wrote: > >> >> On 14 Aug 2012, at 05:29, James Merkel wrote: >> >>> In 10.8, what capabilities does a window need in order for it to have the >>> window title drop down menu? My windows don't see

Re: Ordering of Completion Handlers

2012-09-01 Thread Steve Sisak
At 10:08 AM +0200 8/31/12, Andreas Grosam wrote: I have a number of operations that will be received serially. Each operation can be processed concurrently with respect to each other. I would like to invoke the completion blocks for each operation in the order as they have been received. I'm

Re: Ordering of Completion Handlers

2012-09-01 Thread Seth Willits
On Sep 1, 2012, at 9:53 AM, Andreas Grosam wrote: > On 31.08.2012, at 19:35, Seth Willits wrote: > > Thank you very much Seth. It's a feasible approach. > Your idea inspired me to a simple solution which is demonstrated in the > running example below. > > There is only one caveat: each pending

Re: Ordering of Completion Handlers

2012-09-01 Thread Andreas Grosam
On 31.08.2012, at 19:35, Seth Willits wrote: Thank you very much Seth. It's a feasible approach. Your idea inspired me to a simple solution which is demonstrated in the running example below. There is only one caveat: each pending completion handler occupies a thread. #include #include #inc

Re: Passing data between view

2012-09-01 Thread Alex Zavatone
We use a Matt Galloway style singleton object as a data container that we can access from anywhere. You just declare the reference to the object and access what's inside. http://www.galloway.me.uk/tutorials/singleton-classes/ You'll have to modify this example to use ARC, but that's not hard.

Re: Passing data between view

2012-09-01 Thread Kévin Vavelin
I'm not sure if i'm understanding well. When I call my AddViewController, I just need to set nameCategory. but how ? If i'm not specified the parentView I can't call setNameCategory or [categoryArray insertObject:atIndex:] no ? I understand much with code :/ if you have an example for helping me

Re: Passing data between view

2012-09-01 Thread Fritz Anderson
On 1 Sep 2012, at 9:09 AM, Kévin Vavelin wrote: [In AddViewController, a child view controller. I _presume_ it was initialized by a MasterView[Controller] and pushed onto the navigation controller, but the code the OP presents does not show this. The child does not have a pointer back to the i

Passing data between view

2012-09-01 Thread Kévin Vavelin
Hi there, I'm pretty confuse right now 'cause I can't pass my data to my masterView and I don't know why… I have a master detail view, I don't want to use the detail view so I delete it. I create a new view with a textField and I want to do this action : When I hit the + button on the top right

Re: [Moderator] Re: Sandboxing die.die.die

2012-09-01 Thread Alex Zavatone
On Sep 1, 2012, at 12:11 AM, Scott Anguish wrote: > This has gone far enough. > > The thread is closed. It is appropriate for this list. It is appropriate for this list. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: How to insert a "screen-only" character in an NSTextView?

2012-09-01 Thread Ross Carter
I'll send it to you in a separate email. Ross On Sep 1, 2012, at 8:30 AM, Koen van der Drift wrote: > Does anyone know where I can get the sample project for that session > (WWDC_2010_114.xcodeproj)? The developer website only has the video and > slides, but no source. > > Thanks, > > - Ko

Re: How to insert a "screen-only" character in an NSTextView?

2012-09-01 Thread Koen van der Drift
Does anyone know where I can get the sample project for that session (WWDC_2010_114.xcodeproj)? The developer website only has the video and slides, but no source. Thanks, - Koen. On Aug 31, 2012, at 6:26 PM, Koen van der Drift wrote: > Was it session 114 from 2012? > > - Koen. > > >

core data stores, versioning

2012-09-01 Thread Martin Hewitson
Dear list, I seem to have messed up my core data model such that I have been sent a core data file from a user which I can't open with any of the versions of my model. I suspect I changed a model without making a new version. A bad mistake. My persistent store coordinator is set to do automatic