blocks and retaining CoreFoundation objects

2011-08-08 Thread Roland King
I have a slow image conversion which I want to throw onto a background thread using GCD. The actual method which does the conversion takes a CGImageRef and the code looks like this -(void)convert:(CGImageRef)image withBlock:(ImageResizedBlock)callbackBlock { dispatch_async( dispatch_get_

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Chris Ridd
On 8 Aug 2011, at 16:02, Kyle Sluder wrote: > On Aug 8, 2011, at 4:54 AM, Chris Ridd wrote: > >> >> Does OS X really support the sticky bit? Lion's suggests "no", >> though this line could be read a couple of ways: > > Yep, it's supported and used on directories. Don't think it's supported

Re: Subclassing UIWebview a show-stopper?

2011-08-08 Thread Dave DeLong
Hi Arri, Subclassing UIWebView is probably not going to get your app rejected (though I have no insight in to the approval process). However from a architecture point-of-view, it "smells" bad. UIWebView is one of those views that's not intended to be subclassed. Sure you can, since you can d

Re: Decimation - NSBezierPath or something else?

2011-08-08 Thread Graham Cox
On 09/08/2011, at 3:42 PM, N!K wrote: > I could not believe that this is a new problem; it had to be recognizable and > previously dealt with. > When a number of points occupy one pixel, something has to be done with them. > With the old fashioned CRT, the points would bloom from repeated > in

Subclassing UIWebview a show-stopper?

2011-08-08 Thread arri
Hello, After allot of writing test-cases, and googling for others' experiences, i found that the most easy and straightforward way of achieving what i want, is to simply subcass UIWebView and override UIViews' - hitTest:withEvent method. However, as everyone emphasize everywhere i look, the docs s

Re: Decimation - NSBezierPath or something else?

2011-08-08 Thread N!K
Thank you all for your prompt and appropriate answers. NSBezier doesn't decimate although it does interpolate. Lots and lots of points go slowly. I could not believe that this is a new problem; it had to be recognizable and previously dealt with. When a number of points occupy one pixel, somethi

collapse/expand outline view row with animation

2011-08-08 Thread Martin Hewitson
Dear list, I was wondering if anyone knows a way to get the animated collapsing/expanding of outline view rows programatically. Currently I'm using -collapseItem: and -expandItem: but the visual result doesn't have the animation that you get when clicking on the disclosure triangle. I'm trying

Scaling the scroll wheel

2011-08-08 Thread tim lindner
I have a very wide NSView set as a document of an NSScrollView. When I am zoomed in (by setting the cliprect bounds rectangle) swiping left and right on my magic mouse scroll the expected amount. But when zoomed out (when the bounds rect is nearly the same size of the frame rect) left/right swipin

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Stephen Blinkhorn
On 8 Aug 2011, at 16:42, Sean McBride wrote: On Mon, 8 Aug 2011 16:13:50 -0600, Stephen Blinkhorn said: To be clear, you'd need to use ~/Library/App Support not the one in / Library. OK, no problem in Cocoa with the stringByExpandingTildeInPath: method of NSString. More problematic for CFS

Re: Decimation - NSBezierPath or something else?

2011-08-08 Thread Graham Cox
On 09/08/2011, at 10:32 AM, Conrad Shultz wrote: >> Throwing 25,000 points at NSBezierPath might swamp >> it, or at least run very slowly. > > The obligatory question: is this conjecture or have you found this to be > the case? > > I have some code that plots about 7500 points in a scalable,

Re: Decimation - NSBezierPath or something else?

2011-08-08 Thread wadeslists
> Does NSBezierPath do decimation as well as interpolation? I didn't find it in > the Class Reference. It does whatever it needs to do in order to achieve "great" results, where "great" is in practical terms something like "an order of magnitude finer than pixel resolution". Last I checked, it

Re: Decimation - NSBezierPath or something else?

2011-08-08 Thread Wim Lewis
On 8 Aug 2011, at 5:16 PM, N!K wrote: > Does NSBezierPath do decimation as well as interpolation? I didn't find it in > the Class Reference. > Or is there another class that does it? > Or must I do the decimation before plotting the data with NSBezierPath? No, NSBezierPath doesn't do any kind o

Re: Decimation - NSBezierPath or something else?

2011-08-08 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/8/11 5:16 PM, N!K wrote: > Does NSBezierPath do decimation as well as interpolation? I didn't > find it in the Class Reference. Or is there another class that does > it? Or must I do the decimation before plotting the data with > NSBezierPath?

NSPrinter deviceDescription

2011-08-08 Thread koko
The docs say NSPrinter deviceDescription dictionary is only guaranteed to have the key NSDeviceIsPrinter. This being the case what is best method for finding the points per inch of a selected printer? -koko ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: help with this error

2011-08-08 Thread Sean McBride
On Tue, 9 Aug 2011 08:14:15 +0800, Rick C. said: >Yes the error is coming apparently when it tries to move a file which >needs an administrator password. Thing is a panel is presented asking >for permission and even if you just cancel it this error doesn't >appear. And this is not something new

Decimation - NSBezierPath or something else?

2011-08-08 Thread N!K
Does NSBezierPath do decimation as well as interpolation? I didn't find it in the Class Reference. Or is there another class that does it? Or must I do the decimation before plotting the data with NSBezierPath? Decimation reduces the original sampling rate for a sequence to a lower rate, the op

Re: help with this error

2011-08-08 Thread Rick C.
Yes the error is coming apparently when it tries to move a file which needs an administrator password. Thing is a panel is presented asking for permission and even if you just cancel it this error doesn't appear. And this is not something new meaning this project has been ran on many machines

Re: resizing window containing NSView with CALayer

2011-08-08 Thread Kyle Sluder
On Mon, Aug 8, 2011 at 4:37 PM, Ken Ferry wrote: > See also Cocoa Auto Layout, which addresses this issue among others.  (Have > people caught this? I'm a little surprised there hasn't been more chatter. >  We're replacing the autoresizing mask entirely.) I would imagine it will get more popular

Re: resizing window containing NSView with CALayer

2011-08-08 Thread Ken Ferry
On Mon, Aug 8, 2011 at 5:23 AM, Graham Cox wrote: > > On 08/08/2011, at 9:35 PM, julius wrote: > > > When I go and drag the resize handle to make the window as small as I can > make it, i.e. so the window's content rect has zero height then the view > misbehaves, i.e. the top of the view shifts f

Re: Drawing text like Lion's Mail

2011-08-08 Thread Chase Latta
Andre, I was digging through some old code and found this method I wrote awhile ago. I remember basing this off of a blog post or email thread but I don't remember the original source. I used this for something real quick so the code is not perfect but may be a good starting point to get what

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Sean McBride
On Mon, 8 Aug 2011 16:13:50 -0600, Stephen Blinkhorn said: >> To be clear, you'd need to use ~/Library/App Support not the one in / >> Library. > >OK, no problem in Cocoa with the stringByExpandingTildeInPath: method >of NSString. More problematic for CFStringRef though. Is there an >acknowledged

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Stephen Blinkhorn
On 8 Aug 2011, at 14:56, Sean McBride wrote: On Mon, 8 Aug 2011 14:42:54 -0600, Stephen Blinkhorn said: OK, well /Library/Application Support/CompanyName/ is out I believe as you're not supposed to store user data in there. IIRC, the data you're talking about is registration information, wh

Re: Drawing text like Lion's Mail

2011-08-08 Thread Andre Masse
Seems like a lot of work for a simple effect. I may play again with this later on this project. I have save this thread in Mail which is telling me that there's "20 messages selected" using its fancy font effect :-) Thanks for all infos guys, Andre Masse On 08/08/2011, at 13:29 , David Dunca

Re: [Lion] IBOutlets, strong or weak?

2011-08-08 Thread Josh Abernathy
According to the AppKit release notes: "Note that Xcode 4.2 defaults to ARC when creating new projects, and in the WWDC seed release, as well as in the latest version available at the time 10.7 ships, generates outlet declarations that are strong. This is true for outlets generated in new proje

Re: [Lion] IBOutlets, strong or weak?

2011-08-08 Thread Sean McBride
On Fri, 5 Aug 2011 15:11:25 -0400, Marc Respass said: >With Xcode 4, I can drag from a control to the header and Xcode will >create an outlet and a property. I noticed that Xcode creates a property >like this > >@property (strong) IBOutlet NSTextField *someField; > >But I have other code where it

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Sean McBride
On Mon, 8 Aug 2011 14:42:54 -0600, Stephen Blinkhorn said: >>> OK, well /Library/Application Support/CompanyName/ is out I believe >>> as you're not supposed to store user data in there. >> >> IIRC, the data you're talking about is registration information, >> which is *not* what (I think) is mean

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Stephen Blinkhorn
On 8 Aug 2011, at 12:56, Quincey Morris wrote: On Aug 8, 2011, at 11:39 , Stephen Blinkhorn wrote: OK, well /Library/Application Support/CompanyName/ is out I believe as you're not supposed to store user data in there. IIRC, the data you're talking about is registration information, whic

Re: Core Data : User missing inverse relationship despite model settings

2011-08-08 Thread Jerry Krinock
On 2011 Aug 08, at 09:43, Sean McBride wrote: > Despite knowing that well (after learning it the hard way long ago), I found > another place where I do so. But not in a direct way! A controller object > is using KVO to observe many things. Sometimes in response to these changes, > it ends o

Re: Xcode 4 core data mapping model not creating inherited attributes/relationships

2011-08-08 Thread Martin Hewitson
On Aug 8, 2011, at 06:24 PM, Sean McBride wrote: > On Sun, 7 Aug 2011 07:39:25 +0200, Martin Hewitson said: > >> Is there a know problem or limitation in naming relationships? I haven't >> come across this anywhere before. > > Well, you should not name properties with the same name as an NSObje

Know when text is edited in any app

2011-08-08 Thread Joshua Garnham
I need to know when text is entered (or anything relating to a delegate method happens) in any NSTextView in the active app whether it's my app, TextEdit or Safari. Similar to this app here (http://pilotmoon.com/popclip/). I'm not sure how exactly to go about this and the only thing I have tho

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Jens Alfke
On Aug 8, 2011, at 11:39 AM, Stephen Blinkhorn wrote: > OK, well /Library/Application Support/CompanyName/ is out I believe as you're > not supposed to store user data in there. Which leaves the keychain as the > only option I can think of right now. Keychains are per-user, apart from the syst

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Quincey Morris
On Aug 8, 2011, at 11:39 , Stephen Blinkhorn wrote: > OK, well /Library/Application Support/CompanyName/ is out I believe as you're > not supposed to store user data in there. IIRC, the data you're talking about is registration information, which is *not* what (I think) is meant by "user data".

Re: NSCoding to/from JSON?

2011-08-08 Thread Andy Lee
You might want to look at Bill Kunz's Objectify and maybe discuss with the author. --Andy On Aug 8, 2011, at 12:56 PM, Jens Alfke wrote: > Been thinking about archiving NSObjects to/from JSON, using an API similar to > NSCoding. I haven’t found any prior art

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Stephen Blinkhorn
On 8 Aug 2011, at 12:21, Kyle Sluder wrote: On Mon, Aug 8, 2011 at 11:13 AM, Stephen Blinkhorn wrote: I'm afraid your fears have just been confirmed, until I find a better solution at least. Maybe I can justify this as a kind of protest against AudioUnits not being allowed in the App Store

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Andrew Thompson
But doesn't it seem entirely reasonable that apps signed by the same vendor (for example) be able to share files? I mean in a safe location perhaps with a limited quota of space? Cookies and client side storage in HTML 5 allow this (not exactly the same but still), but native apps have no optio

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Kyle Sluder
On Mon, Aug 8, 2011 at 11:13 AM, Stephen Blinkhorn wrote: > I'm afraid your fears have just been confirmed, until I find a better > solution at least. Maybe I can justify this as a kind of protest against > AudioUnits not being allowed in the App Store :-) Well, writing to /Users/Shared isn't goi

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Stephen Blinkhorn
On 8 Aug 2011, at 10:36, Sean McBride wrote: On Mon, 8 Aug 2011 01:04:07 -0600, Eli Bach said: It's a validation file containing registration details. My product is an AudioUnit plugin so there's no App Store potential but I'd prefer to keep things clean just in case. I don't care where

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Jens Alfke
On Aug 8, 2011, at 10:16 AM, Mikkel Islay wrote: > No, that states something about the way NSXMLParser is able to parse from a > stream. It doesn't say anything about its state with respect to the main > thread. It’s clearly a SAX parser. SAX parsers are incremental, that’s their whole point,

Re: Drawing text like Lion's Mail

2011-08-08 Thread David Duncan
On Aug 8, 2011, at 10:21 AM, Jean-Daniel Dupas wrote: > Le 8 août 2011 à 18:50, David Duncan a écrit : > >> On Aug 8, 2011, at 8:16 AM, Jean-Daniel Dupas wrote: >> >>> >>> I think you can create a CGPath from some text using CTFrameGetPath(). >>> Once you get the path, you can do whatever you w

Re: Drawing text like Lion's Mail

2011-08-08 Thread Jean-Daniel Dupas
Le 8 août 2011 à 18:50, David Duncan a écrit : > On Aug 8, 2011, at 8:16 AM, Jean-Daniel Dupas wrote: > >> >> I think you can create a CGPath from some text using CTFrameGetPath(). >> Once you get the path, you can do whatever you want (clipping, shadow, >> gradient, …). > > > CTFrameGetPath

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Thomas Davie
On 8 Aug 2011, at 18:16, Mikkel Islay wrote: > On 8 Aug 2011, at 19:04, Thomas Davie wrote: >> >> Parameters >> stream >> The input stream. The content is incrementally loaded from the specified >> stream and parsed. > > No, that states something about the way NSXMLParser is able to parse from

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Mikkel Islay
On 8 Aug 2011, at 19:04, Thomas Davie wrote: > > Parameters > stream > The input stream. The content is incrementally loaded from the specified > stream and parsed. No, that states something about the way NSXMLParser is able to parse from a stream. It doesn't say anything about its state with r

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Thomas Davie
The hint is that the NSXMLParser docs say: Parameters stream The input stream. The content is incrementally loaded from the specified stream and parsed. if (*ra4 != 0xffc78948) { return false; } On 8 Aug 2011, at 17:59, Mikkel Islay wrote: > Thanks for the explanation, Jens too. > The hint tha

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Mikkel Islay
Thanks for the explanation, Jens too. The hint that NSXMLParser has that behaviour is that it accepts an NSInputStream, or that it relies on a delegate for communicating "parse-events"? Mikkel On 8 Aug 2011, at 10:34, Andreas Grosam wrote: > No. Asynchronous routines can be implemented above a

NSCoding to/from JSON?

2011-08-08 Thread Jens Alfke
Been thinking about archiving NSObjects to/from JSON, using an API similar to NSCoding. I haven’t found any prior art, but I thought I’d ask here. I am not talking about serializing JSON to/from collection objects a la TouchJSON, JSONKit, etc.; rather, something that lets you convert your custom

Re: Drawing text like Lion's Mail

2011-08-08 Thread David Duncan
On Aug 8, 2011, at 8:16 AM, Jean-Daniel Dupas wrote: > > I think you can create a CGPath from some text using CTFrameGetPath(). > Once you get the path, you can do whatever you want (clipping, shadow, > gradient, …). CTFrameGetPath() returns the path used to create the frame, typically a rect

Re: Core Data : User missing inverse relationship despite model settings

2011-08-08 Thread Sean McBride
On Mon, 8 Aug 2011 01:12:36 -0700, Jerry Krinock said: >The reports indicate (rather strangely, but I'm watching my word count >here) that the problem is "Dangling reference to an invalid object". >Searching list archives tells me that this has been due to setting a >relationship in -awakeFromFetc

Lion code-signing at all (was Re: Signing for sandboxing, etc)

2011-08-08 Thread Fritz Anderson
On 8 Aug 2011, at 11:28 AM, Sean McBride wrote: > Sandboxing, IMNSHO, is still half-baked. Note that on Lion, only TextEdit > and Preview have it enabled. That should tell you something. I tried with > my app, and hit bug after bug. In addition to limitation after limitation. Ah. Given that

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Sean McBride
On Mon, 8 Aug 2011 01:04:07 -0600, Eli Bach said: >> It's a validation file containing registration details. My product is >an AudioUnit plugin so there's no App Store potential but I'd prefer to >keep things clean just in case. >> >> I don't care where I write the file much (previously I wrote it

Re: Telling Auto Save, "No, I'm busy now"

2011-08-08 Thread Kevin Perry
Ah, I did not foresee this. I really can't generally recommend calling -saveToURL:::error: instead of saveToURL:::completionHandler: because the latter does some important things that the former doesn't. Unfortunately, I think the problem you're seeing with the hang is insurmountable without ad

Re: Signing for sandboxing (was NSPersistentDocument: SQLite error 21...)

2011-08-08 Thread Sean McBride
On Sun, 7 Aug 2011 15:41:01 -0500, Fritz Anderson said: >> I have an NSPersistentDocument, with autosave-in-place enabled. When I >try to save the document after editing it, it balks with both >application-modal alerts and document-modal sheets, all with generic >messages about being unable to cre

Re: Xcode 4 core data mapping model not creating inherited attributes/relationships

2011-08-08 Thread Sean McBride
On Sun, 7 Aug 2011 07:39:25 +0200, Martin Hewitson said: >Is there a know problem or limitation in naming relationships? I haven't >come across this anywhere before. Well, you should not name properties with the same name as an NSObject or NSMangedObject method name. ex: don't create a property

Re: Drawing text like Lion's Mail

2011-08-08 Thread Siegfried
On 08/08/2011, at 12:16, Jean-Daniel Dupas wrote: > I think you can create a CGPath from some text using CTFrameGetPath(). > Once you get the path, you can do whatever you want (clipping, shadow, > gradient, …). Ah, then that's the way to go! Thanks Jean-Daniel. The image I created used as back

Re: Drawing text like Lion's Mail

2011-08-08 Thread Jean-Daniel Dupas
I think you can create a CGPath from some text using CTFrameGetPath(). Once you get the path, you can do whatever you want (clipping, shadow, gradient, …). Le 8 août 2011 à 02:22, Andre Masse a écrit : > Interesting. Not sure if could be possible to convert the text to an image, > apply a grad

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Kyle Sluder
On Aug 8, 2011, at 4:54 AM, Chris Ridd wrote: > > Does OS X really support the sticky bit? Lion's suggests "no", > though this line could be read a couple of ways: Yep, it's supported and used on directories. Don't think it's supported on files, though. --Kyle Sluder

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
On 8 Aug 2011, at 14:00, Graham Cox wrote: > > Doing it this way should make your layer immune from the zero size problem. > Thanks. That's really helpful. Amazon's just mailed to say the Core Animation book should be with me in a few days. >From what I've seen and tried so far this layered an

Re: resizing window containing NSView with CALayer

2011-08-08 Thread Graham Cox
On 08/08/2011, at 10:42 PM, julius wrote: >> The reason this happens is that once either the width or height goes to 0, >> there's nothing for the view sizing code to mutliply by to end up with the >> destination size - once you hit a zero, the sizing information is lost. To >> prevent this, s

Re: Release build throw "unrecognized selector sent to instance" for a category method

2011-08-08 Thread Bruno Berisso
Recently we have the same problem in a new project that use a open source library. The author of the library suggest the use of tow linker flags: '-ObjC' and '-all_load', and guest what?! This is exactly what I need (http://developer.apple.com/library/mac/#qa/qa1490/_index.html) Thanks for your

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
On 8 Aug 2011, at 13:23, Graham Cox wrote: > > On 08/08/2011, at 9:35 PM, julius wrote: > >> When I go and drag the resize handle to make the window as small as I can >> make it, i.e. so the window's content rect has zero height then the view >> misbehaves, i.e. the top of the view shifts fro

Re: resizing window containing NSView with CALayer

2011-08-08 Thread Graham Cox
On 08/08/2011, at 9:35 PM, julius wrote: > When I go and drag the resize handle to make the window as small as I can > make it, i.e. so the window's content rect has zero height then the view > misbehaves, i.e. the top of the view shifts from being some 100 pixels below > the title bar to bein

Re: Core Data : User missing inverse relationship despite model settings

2011-08-08 Thread Jerry Krinock
I forgot to say that this is on Mac. One error report came from Snow Leopard and the other from Lion. Store is SQLite.___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Chris Ridd
On 8 Aug 2011, at 08:13, vincent habchi wrote: >> Some apps, including iTunes, using /Users/Shared/ for DRM. It may still be >> world-writable in Lion [which I can't confirm as I haven't switched >> yet...come on 10.7.2...]. > > I can confirm /Users/Shared is world writable on 10.7; besides,

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
On 8 Aug 2011, at 11:23, Graham Cox wrote: > OK, I downloaded the project (tip: always get rid of the build folder before > posting a project - it makes the difference between a 5 MB download and one > that's only a few K, which on your server, added up to many minutes). Sorry about that. Have

Re: CoreData "I/O error for database: no such table"

2011-08-08 Thread Nick Shore
Nick, I was in fact using existing databases - actually the update I'm working on has a migration involved in it too. I didn't mention it originally as I'd ruled it out as the cause, but that actually helped fix the problem. Since I was already migrating the data (with custom entity migration p

Re: resizing window containing NSView with CALayer

2011-08-08 Thread Graham Cox
OK, I downloaded the project (tip: always get rid of the build folder before posting a project - it makes the difference between a 5 MB download and one that's only a few K, which on your server, added up to many minutes). Result - it works completely correctly and normally. The view resizes wit

Re: Coordinate system in CAOpenGLLayer

2011-08-08 Thread Graham Cox
Thanks Thomas, I'll check it out. --Graham On 08/08/2011, at 6:24 PM, Thomas Davie wrote: > You're right – the vertices are here specified in OpenGL "clip space" – a > coordinate system stretching from -1 to 1 on all 3 axes. If you want to > specify points in a different coordinate space, it

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
On 8 Aug 2011, at 01:46, Graham Cox wrote: > > On 08/08/2011, at 5:52 AM, julius wrote: > >> - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { > > > I didn't notice first time through that this is where your code resides > (sometimes the most obvious errors pass by whe

Re: Asynchronous downloading and parsing of XML

2011-08-08 Thread Andreas Grosam
On Aug 7, 2011, at 1:47 PM, Mikkel Islay wrote: > Thanks for sharing with the list. > ... Aren't you in effect throwing away the benefits of asynchronous loading? No. Asynchronous routines can be implemented above a blocking interface. Blocking and asynchronous interfaces work well together, an

Re: resizing window containing NSView with CALayer

2011-08-08 Thread julius
On 7 Aug 2011, at 21:30, Kyle Sluder wrote: > On Sun, Aug 7, 2011 at 1:05 PM, julius wrote: >> It is not a problem with the layers. >> I get exactly the same behaviour if I leave out all the layer stuff and >> instead code the following in the view > > Meaning, you still call -setLayer: and -s

Re: Coordinate system in CAOpenGLLayer

2011-08-08 Thread Thomas Davie
You're right – the vertices are here specified in OpenGL "clip space" – a coordinate system stretching from -1 to 1 on all 3 axes. If you want to specify points in a different coordinate space, it's your responsibility to make sure that they end up in clip space, by transforming them appropriat

Core Data : User missing inverse relationship despite model settings

2011-08-08 Thread Jerry Krinock
I received reports of identical Core Data validation errors from two users in the last week, which I cannot reproduce. It involves these relationships, which are inverses of one another: Bar Foo foo <<> bars In both directions, the Delete Rule is "Nullify", and for the to-

Coordinate system in CAOpenGLLayer

2011-08-08 Thread Graham Cox
I'm looking at using CAOpenGLLayer to boost drawing performance. I'm a total novice at OpenGL. Looking at the 'CALayerEssentials' sample code as a starting point, it has the following code: -(void)drawInCGLContext:(CGLContextObj)glContext pixelFormat:(CGLPixelFormatObj)pixelFormat forLayerTim

Re: Notification of autocomplete (in any app)

2011-08-08 Thread Joshua Garnham
Thanks, that's just what I was looking for. I am now able to know exactly when autocorrect has taken place in the NSTextView in my app. However (if you don't mind me extending my question), what if I wanted to know when this happens in any NSTextView in the active app whether it's my app, TextE

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread vincent habchi
> Some apps, including iTunes, using /Users/Shared/ for DRM. It may still be > world-writable in Lion [which I can't confirm as I haven't switched > yet...come on 10.7.2...]. I can confirm /Users/Shared is world writable on 10.7; besides, it has the sticky (8) bit set, just like /tmp. Vincent

Re: CFURLWriteDataAndPropertiesToResource as root?

2011-08-08 Thread Eli Bach
On Aug 7, 2011, at 10:07 PM, Stephen Blinkhorn wrote: > It's a validation file containing registration details. My product is an > AudioUnit plugin so there's no App Store potential but I'd prefer to keep > things clean just in case. > > I don't care where I write the file much (previously I w

Re: Notification of autocomplete

2011-08-08 Thread Kyle Sluder
On Sun, Aug 7, 2011 at 11:40 PM, Joshua Garnham wrote: > > Is there some notification that is posted or some other way to tell when in a > NSTextView or any editable element that something has been autocorrected? -textView:didCheckTextInRange:types:options:results:orthography:wordCount: http://