[Mono-osx] Coordinate system
kjpou
kjpou at pt.lu
Mon Nov 15 13:37:36 EST 2010
Florian
You can find them on the forum http://go-mono.com/forums/ and select
subform Mono-OSX or in the archives of the list.
They can also be found in the git source here:
https://github.com/mono/monomac
Look under samples.
Kenneth
On 11/15/10 6:02 PM, Florian Heiber wrote:
> Thanks! Are the samples on the MonoMac website? Couldn't find them
> there. Do you have a link?
>
> –f
>
> On 15.11.2010, at 17:14, kjpou wrote:
>
>> Florian
>>
>> Take a look at the sample programs that have been posted lately.
>> There are a couple of examples of overriding the nsview's method of
>> isFlipped.
>>
>> Here is some code you can use:
>>
>> public override bool IsFlipped {
>> get {
>> return true;
>> }
>> }
>>
>> Hope this helps.
>>
>> Kenneth
>>
>> On 11/15/10 4:46 PM, Florian Heiber wrote:
>>> Hi Eric,
>>>
>>> Thanks for that hint. I googled it and it told me to create a
>>> subclass of NSView and override the -isFlipped method. So if I were
>>> using Xcode and Objective-C alone that wouldn't be a problem. But
>>> how do I do that using MonoMac?
>>>
>>> Best
>>> –f
>>>
>>> On 15.11.2010, at 16:37, Eric Slosser wrote:
>>>
>>>>
>>>> On Nov 15, 2010, at 10:30 AM, Florian Heiber wrote:
>>>>
>>>>> is there a way to flip the coordinate system when working with
>>>>> MonoMac? I'd like to have (0,0) in the upper left hand corner
>>>>> instead of the lower left hand one. Would make things way more
>>>>> comfortable.
>>>>
>>>> check out -(BOOL) [NSView isFlipped]
>>>
>>>
>>> _______________________________________________
>>> Mono-osx mailing list
>>> Mono-osx at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-osx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20101115/e6f1eba3/attachment.html
More information about the Mono-osx
mailing list