Re: Dynamic Method Creation

2012-09-14 Thread Steve Steinitz
Hi Ken, Thanks for your quick reply. On 15 Sep 12, at 3:16pm, Ken Thomases wrote: > No offense, but this seems like a terrible design. And your KVO hack method > screams of papering over a bug. No offense but none of your criticisms seem to hold water. I might address them individually afte

Re: maintaining alpha value for intersecting lines?

2012-09-14 Thread 👾
> Combining paths into a single NSBezierPath means those paths are treated as a > single object for a drawing operation, and intersections are rendered > accordingly. However, this behaviour doesn't come at no cost - the code has > to find those intersections and deal with them by ensuring that

Re: Dynamic Method Creation

2012-09-14 Thread Ken Thomases
On Sep 14, 2012, at 11:38 PM, Steve Steinitz wrote: > I'm writing a roster window for our point-of-sale app. I have some methods > (on Employee) for binding to a view-based TableView (which looks a bit like a > week planner), a set of methods for each day of the week. So far I have only > imp

Re: Dynamic Method Creation

2012-09-14 Thread 👾
If you actually want to create them in your source, so that code completion works as expected and the compiler doesn't issue unrecognised selector warnings, then you'll need to do at least macros, if not a custom build phase using some kind of templating tool. They may exist; I don't know. If

Re: Dynamic Method Creation

2012-09-14 Thread Graham Cox
On 15/09/2012, at 2:38 PM, Steve Steinitz wrote: > I also am not able to see how to do it with macros You can use ## to join strings in macros, which would allow you to build method names from some common templates. I'm not sure how much work it would save you... http://gcc.gnu.org/onlinedo

Re: Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Jay Freeman
I get the same result whether the original URL I type in is bugreport.apple.com, bugreporter.apple.com, or radar.apple.com -- they all redirect to the same page where you type the actual login information. -- Jay Reynolds Freeman - jay_reynolds_free...@mac.com http://JayReyn

Re: Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Alex Zavatone
Try a different browser, perhaps? Firefox, Chrome, Camino? On Sep 15, 2012, at 12:52 AM, Graham Cox wrote: > > On 15/09/2012, at 2:07 PM, Jay Freeman wrote: > >> When I try to log in to https://bugreporter.apple.com, using Safari 6.0, >> running on a MacPro3.1 using OS 10.8.1, I always get t

Re: Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Alex Zavatone
Quit and restart your browser. On Sep 15, 2012, at 12:43 AM, Lee Ann Rucker wrote: > Interesting - going through radar.apple.com (my bookmark) or > bugreport.apple.com (what radar redirects to) didn't give me any warning. I > tried bugreporter and did get one - it redirects to bugreport too. >

Re: Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Graham Cox
On 15/09/2012, at 2:07 PM, Jay Freeman wrote: > When I try to log in to https://bugreporter.apple.com, using Safari 6.0, > running on a MacPro3.1 using OS 10.8.1, I always get the message, "An error > has occurred. Please report the error to Apple Inc. by emailing the error > detail to devb..

Re: Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Lee Ann Rucker
Interesting - going through radar.apple.com (my bookmark) or bugreport.apple.com (what radar redirects to) didn't give me any warning. I tried bugreporter and did get one - it redirects to bugreport too. Safari 5.1.6 here. - Original Message - From: "Alex Zavatone" To: "Jay Freeman" C

Re: Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Jay Freeman
Well, fascinating, except that I didn't get any warnings about insecure connections from either Safari or Firefox. I might also mention that I have an old machine with MacOS 10.6.8 and Safari 5.1.7 installed, and I can get to bugreporter from it, also with no warnings about insecure connections

Dynamic Method Creation

2012-09-14 Thread Steve Steinitz
Hello, I'm writing a roster window for our point-of-sale app. I have some methods (on Employee) for binding to a view-based TableView (which looks a bit like a week planner), a set of methods for each day of the week. So far I have only implemented and debugged the Monday ones: - (Shift *)

Re: Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Alex Zavatone
It's probably because Apple's not keeping their own certificate up to date. See, security's a good thing! Works for me after bypassing that alert on Safari 5.1.7. >From Firefox: This Connection is Untrusted You have asked Firefox to connect securely to bugreporter.apple.com, but we c

Cannot get to bugreporter.apple.com from Safari 6.0.

2012-09-14 Thread Jay Freeman
When I try to log in to https://bugreporter.apple.com, using Safari 6.0, running on a MacPro3.1 using OS 10.8.1, I always get the message, "An error has occurred. Please report the error to Apple Inc. by emailing the error detail to devb...@apple.com." This has been happening for four or five d

Re: NSNumberFormatter + nil values

2012-09-14 Thread Jerry Krinock
On 2012 Sep 14, at 05:35, Markus Spoettl wrote: > Does anyone know what may be causing this? Do I really need to remove the old > number formatter and re-attach a new one? I'd like to avoid that because if > possible as I have a large number of those and the UI to set it up is > painfully unh

Re: Sandboxing not so bad

2012-09-14 Thread Scott Ellsworth
Eh, I suspect it is merely that DTS did not explicitly release Ben from the NDA when they gave him the answer. If this is a black helicopter moment, though, then color me interested. :) On Fri, Sep 14, 2012 at 7:34 PM, Graham Cox wrote: > > On 14/09/2012, at 8:47 PM, Ben wrote: > > > you need

Re: Sandboxing not so bad

2012-09-14 Thread Graham Cox
On 14/09/2012, at 8:47 PM, Ben wrote: > you need to file a bug/use a DTS incident to find out how. Hmmm... security through obscurity. That always works out well. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Another sandboxing snafu

2012-09-14 Thread Graham Cox
On 14/09/2012, at 7:07 PM, Mike Abdullah wrote: >> Anyone got this simple use of NSOpenPanel to work with sandboxing? > > Yes. Does this same code work OK outside the sandbox? Is there any likely > looking preference file related to open/save panels you can try deleting? > It works fine wit

Sandboxing problems: writing to a temporary directory is not allowed

2012-09-14 Thread Nick
Hello I am writing a simple Mail.app plugin that is intended for exporting emails in a custom format. Now, the problem is that I used to save email files into a temporary directory (NSTempDirectory()) before converting them. It worked fine on 10.6 and 10.7, but on OS X 10.8, everytime I try to wri

Re: Sandboxing not so bad

2012-09-14 Thread Flavio Donadio
Scott Anguish (The Moderator) and all the people on the list, I am also sick and tired of that, since the arguments usually derail into ranting and pointless discussions. I also don't see any chance of this subject going away in the future, since it's now part of the OS strategy. So, I suggest

NSNumberFormatter + nil values

2012-09-14 Thread Markus Spoettl
Hi, I'm having some trouble with a number formatter that I can't make sense of: I have 2 NSTextFields bound to 2 NSNumber properties in my model. Both text fields have NSNumberFormatters attached to them. One of the text fields will cause an alert when an attempt is made to clear the field,

Re: Sandboxing not so bad

2012-09-14 Thread Ben
On 13 Sep 2012, at 23:53, Graham Cox wrote: > If you need access to files whose paths or URLs you create programmatically > (e.g. you select a file.foo but it has a counterpart file.bar that you also > need to access) you can't… > > --Graham Yes you can. It's not difficult, but you need to

Re: Another sandboxing snafu

2012-09-14 Thread Mike Abdullah
On 14 Sep 2012, at 00:15, Graham Cox wrote: > Grrr... and here's exactly the sort of stupid thing that I was referring to a > moment ago in another thread... > > > I'm attempting to show an NSOpenPanel as a sheet, app is sandboxed. This has > always worked perfectly fine: > > NSOpenPa