Re: Layers in NSCollectionView

2012-12-02 Thread Kyle Sluder
On Dec 2, 2012, at 6:23 PM, Gordon Apple wrote: > I tried setting only that in IB. I also tried setting everything in that > view nib. OriginalLayer is non-nil in the trace, but, as you see, gets > replaced with the one with color background. Well, it's probably not a good idea to turn on la

Re: Layers in NSCollectionView

2012-12-02 Thread Gordon Apple
I tried setting only that in IB. I also tried setting everything in that view nib. OriginalLayer is non-nil in the trace, but, as you see, gets replaced with the one with color background. On 12/2/12 5:48 PM, "Kyle Sluder" wrote: > On Sun, Dec 2, 2012, at 03:07 PM, Gordon Apple wrote: >> > I

Re: network programming

2012-12-02 Thread Jens Alfke
On 2 Dec 2012, at 20:46, hmier...@me.com wrote: > On 2. Dec 2012, at 20:30, Jens Alfke wrote: > >> Doing a TCP server isn’t too hard because CFStream… > > looks like there is some misunderstanding here. i don't want to write a TCP > server, i want to connect to one. the purpose is to send som

Re: Cocoa-dev Digest, Vol 9, Issue 823

2012-12-02 Thread jwwest
Unsubscribe Sent from my iPhone On Dec 2, 2012, at 2:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > Send Cocoa-dev mailing list submissions to >cocoa-dev@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit >https://lists.apple.com/mailman/listinfo/cocoa-dev

Re: Layers in NSCollectionView

2012-12-02 Thread Kyle Sluder
On Sun, Dec 2, 2012, at 03:07 PM, Gordon Apple wrote: > I have a simple subview in my NSCollectionView prototype. (Collection > view > is in a popover. Popover launched from a floating control panel.) It > contains the following: > > - (void) awakeFromNib { > CALayer *originalLayer = self.la

Layers in NSCollectionView

2012-12-02 Thread Gordon Apple
I have a simple subview in my NSCollectionView prototype. (Collection view is in a popover. Popover launched from a floating control panel.) It contains the following: - (void) awakeFromNib { CALayer *originalLayer = self.layer; CALayer *newLayer = [CALayer layer]; newLayer.backgroun

Re: network programming

2012-12-02 Thread jonat...@mugginsoft.com
On 2 Dec 2012, at 20:46, hmier...@me.com wrote: > > On 2. Dec 2012, at 20:30, Jens Alfke wrote: > >> Doing a TCP server isn’t too hard because CFStream… > > looks like there is some misunderstanding here. i don't want to write a TCP > server, i want to connect to one. the purpose is to send

Re: network programming

2012-12-02 Thread hmiersch
On 2. Dec 2012, at 20:30, Jens Alfke wrote: > Doing a TCP server isn’t too hard because CFStream… looks like there is some misunderstanding here. i don't want to write a TCP server, i want to connect to one. the purpose is to send some commands to the broker and get some data back, then proce

Re: network programming

2012-12-02 Thread jonat...@mugginsoft.com
On 2 Dec 2012, at 20:30, Jens Alfke wrote: > > On Dec 2, 2012, at 11:29 AM, hmier...@me.com wrote: > >> question is, what's the best way to do that? can i use cocoa or do i have to >> use some lower-level libraries? i think the broker accepts TCP while >> flightgear expects UDP, AFAIK. > >

Re: network programming

2012-12-02 Thread Jens Alfke
On Dec 2, 2012, at 11:29 AM, hmier...@me.com wrote: > question is, what's the best way to do that? can i use cocoa or do i have to > use some lower-level libraries? i think the broker accepts TCP while > flightgear expects UDP, AFAIK. Cocoa has some limited support for TCP: you can open a clie

network programming

2012-12-02 Thread hmiersch
hi. here's the situation: i'm trying to set up a flight simulation system with PS1 (an old 747 simulator originally written for MS-DOS) as the driving force (best systems simulation short of a professional full-motion sim) and several add-ons running in a parallels VM under XP. because PS1 has

Re: NSUserUnixTask and com.apple.foundation.UserScriptService crash [SOLVED]

2012-12-02 Thread Quincey Morris
On Dec 2, 2012, at 02:18 , jonat...@mugginsoft.com wrote: > Thanks to Fritz for pointing out that the error detection was not up to > scratch. > if (!userScriptsFolderURL || *error) { > [NSException raise:MGSTaskStartException format:@"Bad user scripts > folder URL"]; > } > if (!_u

Re: NSUserUnixTask and com.apple.foundation.UserScriptService crash [SOLVED]

2012-12-02 Thread jonathan
On 1 Dec 2012, at 22:13, jonat...@mugginsoft.com wrote: > I am trying to run the following one line echo bash script using > NSUserUnixTask: > > echo "hello" >/dev/stderr No need to go any further than here. A script containing the above line executes in the bash shell as is, however NSUserUni

Re: NSApplicationScriptsDirectory access for helper tool

2012-12-02 Thread jonat...@mugginsoft.com
On 30 Nov 2012, at 15:00, jonat...@mugginsoft.com wrote: > I think that this question can be distilled down to : > > Can a sandboxed app bundle helper tool use NSUserUnixTask to run a user > script in NSApplicationScriptsDirectory? > > All my attempts have failed. > > Regards > > Jonathan Mi