Re: Floating-point differences between ARM processors

2013-01-04 Thread vincent habchi
On 5 janv. 2013, at 03:38, Rick Mann wrote: > So, we've run into an issue in our physics simulation where the floating > point results from cos() (and probably other intrinsics) are different > between Apple ARM 5 and Apple ARM 6 processors. This is not much of a surprise. Afaik, only 6 inclu

Re: Floating-point differences between ARM processors

2013-01-04 Thread Roland King
Have you looked at crlibm? I've never used it on OSX or iOS or even tried compiling it but I've seen it linked into some code at work. On 5 Jan, 2013, at 10:38 AM, Rick Mann wrote: > So, we've run into an issue in our physics simulation where the floating > point results from cos() (and pro

Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
On Jan 4, 2013, at 8:00 PM, Graham Cox wrote: > > On 05/01/2013, at 1:08 PM, Andy Lee wrote: > >> Put this all together and clearly the document view's visibleRect does not >> include any of the area occupied by the scroll bars. >> >> But maybe I am answering the wrong question, in which case

Re: scroll bars and visible rect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 1:08 PM, Andy Lee wrote: > Put this all together and clearly the document view's visibleRect does not > include any of the area occupied by the scroll bars. > > But maybe I am answering the wrong question, in which case... never mind. I understood the question to mean what

Re: Optimal height for WebView

2013-01-04 Thread Steve Christensen
On Jan 4, 2013, at 10:40 AM, Mike Abdullah wrote: > On 4 Jan 2013, at 18:12, Eric Gorr wrote: > >> Good point Mike. >> >> However, after it has completed the layout, is it possible to determine the >> height of the content? If so, i could probably work with that information. >> >> But, I woul

Floating-point differences between ARM processors

2013-01-04 Thread Rick Mann
So, we've run into an issue in our physics simulation where the floating point results from cos() (and probably other intrinsics) are different between Apple ARM 5 and Apple ARM 6 processors. One person online said he solved the issue by implementing his own intrinsics, but I don't know how to d

Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
Oh, one factor I did not consider -- the user can choose different scroll bar visibility behavior in System Preferences: * "Automatically based on mouse or trackpad" * "When scrolling" * "Always" If certain users are seeing display errors and not others, it might be worth asking what their sett

Re: scroll bars and visible rect

2013-01-04 Thread Andy Lee
On Jan 4, 2013, at 4:04 PM, Graham Cox wrote: > > On 05/01/2013, at 12:28 AM, koko wrote: > >> Thanks, Graham. >> >> I have no control over "Basing the size of some content on the visible rect >> sounds like a bad idea" as that is what the boss wants. >> >> FYI, our model defines a bitmap o

Re: NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Nick Zitzmann
On Jan 4, 2013, at 6:38 PM, Greg Parker wrote: >> Short question: Given a year, week-of-year, and weekday in that >> week-of-year, what is the most reliable way to get the NSDate for that day >> even when the week-of-year is week 1? This is calendrical grey area, because >> there may be two w

Re: NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Greg Parker
On Jan 4, 2013, at 4:44 PM, Nick Zitzmann wrote: > Short question: Given a year, week-of-year, and weekday in that week-of-year, > what is the most reliable way to get the NSDate for that day even when the > week-of-year is week 1? This is calendrical grey area, because there may be > two week

Re: NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Kyle Sluder
On Fri, Jan 4, 2013, at 04:44 PM, Nick Zitzmann wrote: > What do I have to set in NSDateComponents to give NSCalendar a little > more context so I get the correct date number? I already tried setting > the month to 1 (January) in the components, and I got the same incorrect > results. Use -setYear

NSCalendar week-of-year calculations and week 1

2013-01-04 Thread Nick Zitzmann
Short question: Given a year, week-of-year, and weekday in that week-of-year, what is the most reliable way to get the NSDate for that day even when the week-of-year is week 1? This is calendrical grey area, because there may be two week 1s in a year. Long question: We're using the NSCalendar

Re: NSSplitView -drawDividerInRect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 12:16 AM, koko wrote: > I am currently drawing a custom divider via -drawDividerInRect but want to > improve this and am not sure of the proper approach. > > I would like to draw a divider similar to that in the Xcode Utilities view > which has the four buttons for Template,

Re: scroll bars and visible rect

2013-01-04 Thread Graham Cox
On 05/01/2013, at 12:28 AM, koko wrote: > Thanks, Graham. > > I have no control over "Basing the size of some content on the visible rect > sounds like a bad idea" as that is what the boss wants. > > FYI, our model defines a bitmap of content and we use the visible rect to > clip this conten

Simple Value Expressions in a Core Data Mapping Model?

2013-01-04 Thread Jerry Krinock
I needed to create a Core Data Mapping Model today. The only value migration necessary was to negate a boolean. It seems like one should be able to enter such a simple expression into the "Value Expression" column of "Attribute Mappings". Reading the Predicate Programming Guide, I tried, in t

Re: [BUG SUBMITTED] Text Field Cells in Table View: Enabled and Editable not working

2013-01-04 Thread Jens Alfke
On Jan 4, 2013, at 11:52 AM, Jerry Krinock wrote: > Instead of getting a focus ring around the clicked cell, you get a 1-pixel > gray rectangle. > Instead of the text being highlighted normally, you get a gray highlight. > When you type characters, a sysbeep. This isn’t a bug, if I understand

Re: [BUG SUBMITTED] Text Field Cells in Table View: Enabled and Editable not working

2013-01-04 Thread Jerry Krinock
I've submitted this with a sample project. Bug ID# 12958605. Text Cell in NSTable Can't be Edited if Window has no Title Summary: In an NSTextFieldCell, in an NSTableView, in an NSWindow that has to title bar (as many developers configure for use as sheets), the user cannot edit the text. De

Re: Optimal height for WebView

2013-01-04 Thread Mike Abdullah
On 4 Jan 2013, at 18:12, Eric Gorr wrote: > Good point Mike. > > However, after it has completed the layout, is it possible to determine the > height of the content? If so, i could probably work with that information. > > But, I would still think it was possible to provide a method with a fix

Re: Optimal height for WebView

2013-01-04 Thread Eric Gorr
Good point Mike. However, after it has completed the layout, is it possible to determine the height of the content? If so, i could probably work with that information. But, I would still think it was possible to provide a method with a fixed width, have it perform a layout, and return the heigh

Re: Optimal height for WebView

2013-01-04 Thread Mike Abdullah
On 4 Jan 2013, at 17:19, Eric Gorr wrote: > > > Sent from my iPhone > > On Jan 4, 2013, at 11:34 AM, Keary Suska wrote: > >> On Jan 4, 2013, at 9:19 AM, Eric Gorr wrote: >> >>> It seems like this should be a simple question. I can access the >>> NSScrollView of the WebView and ask the scr

Re: Optimal height for WebView

2013-01-04 Thread Eric Gorr
Sent from my iPhone On Jan 4, 2013, at 11:34 AM, Keary Suska wrote: > On Jan 4, 2013, at 9:19 AM, Eric Gorr wrote: > >> It seems like this should be a simple question. I can access the >> NSScrollView of the WebView and ask the scroll view for the height of its >> document view, but the hei

Re: Editing multiple selections with bindings

2013-01-04 Thread Patrick Cusack
Keary, Ok, I finally found [control abortEditing]. Why I never saw this to begin with is embarrassing to say the least. In my textShouldEndEditing, I perform my logic, aborting if need be. As the control retains the text I last entered before I abort, I force the NSArrayController to reselect

Re: Optimal height for WebView

2013-01-04 Thread Keary Suska
On Jan 4, 2013, at 9:19 AM, Eric Gorr wrote: > It seems like this should be a simple question. I can access the NSScrollView > of the WebView and ask the scroll view for the height of its document view, > but the height it returns is the current height of the WebView, not the > height of the co

Optimal height for WebView

2013-01-04 Thread Eric Gorr
It seems like this should be a simple question. I can access the NSScrollView of the WebView and ask the scroll view for the height of its document view, but the height it returns is the current height of the WebView, not the height of the content it currently contains. If I reduce the height o

NSSplitView -drawDividerInRect

2013-01-04 Thread koko
I am currently drawing a custom divider via -drawDividerInRect but want to improve this and am not sure of the proper approach. I would like to draw a divider similar to that in the Xcode Utilities view which has the four buttons for Template, Code, Object and Media Libraries. This divider is i

Re: scroll bars and visible rect

2013-01-04 Thread Mike Abdullah
On 3 Jan 2013, at 17:54, koko wrote: > visibleRect > > Returns the visible region of the receiver, in its own coordinate space. > (read-only) > > @property(readonly) CGRect visibleRect > Discussion > > The visible region is the area not clipped by the containing scroll layer. > > > And I m