Page 1 of 1

mouse events for cocoa event handling guide

Posted: Tue Jan 11, 2011 3:34 pm
by cajomi
Someone could help me programming cocoa events for mouse tracking.
Johannes

Re: mouse events for cocoa event handling guide

Posted: Tue Jan 11, 2011 8:01 pm
by inc.
PB for OSx uses the Carbon framework, so you won't be able to access the Cocoa framework within PB.
Also Cocoa relies on Objective-C an therefore its not procedural orientated.

Re: mouse events for cocoa event handling guide

Posted: Wed Jan 12, 2011 8:49 am
by cajomi
Oh, that is bad. All 8 bit does not work?

Re: mouse events for cocoa event handling guide

Posted: Wed Jan 12, 2011 12:00 pm
by devulder
inc. wrote:PB for OSx uses the Carbon framework, so you won't be able to access the Cocoa framework within PB.
Also Cocoa relies on Objective-C an therefore its not procedural orientated.
Hi,

You have a cocoa plugin in development (10.6 Intel), a beta version may be available this week.

Many more works, lack of documentation.

You can use full cocoa controls (pathcontrol, segmented controls), sheet windows, drawers,...

It's not the same philosophy of purebasic events, no message, use only callbacks.

You cannot mix carbon and cocoa api.

You can include the framework inside the executable for publish to mac app store.

Thanks,

Re: mouse events for cocoa event handling guide

Posted: Wed Jan 12, 2011 12:55 pm
by cajomi
Many thanks,
now I am waiting.......
Johannes

Re: mouse events for cocoa event handling guide

Posted: Mon Jan 17, 2011 2:25 pm
by cajomi
Hi devulder, (don“t know, whether is name the real)

can you give me a link?

Johannes

Re: mouse events for cocoa event handling guide

Posted: Mon Jan 17, 2011 10:49 pm
by devulder
Hi,

Sorry i'm late !

before install need to have PB 4.51,OSX Intel 10.6

the link is here: link

Extract the zip file on /Applications directory !!! (elsewhere the examples doesn't work)

the "PB DEMO" contains

all small demos,

the include file pnheader.pbi

the dynamic library named Untitled.dylib (incredible name :)

The html doc file is obsolete.

it's the first beta, just for testing examples works for some computers

the final version is a shareware available of end of feb 2011.

thanks,

if you have questions, bugs reports, write me.

Re: mouse events for cocoa event handling guide

Posted: Tue Jan 18, 2011 8:43 am
by cajomi
Hi,

many thanks, I will try it and post it.

Johannes

Re: mouse events for cocoa event handling guide

Posted: Sun Jan 30, 2011 1:47 pm
by alexioklini
hi devulder,

Thanks for your work on a cocoa ui library for purebasic.
I tried the examples in your beta release and found several problems:

1.) The compiled executable requires the Untitled.dylib to be present in /Users/rgbrgb/Desktop.
Is there a compiler option or other configuration setting needed to load the dylib from another location ?
2.) The tree example loads but the tree control is empty.
3.) The divider control is dark grey instead of the "normal" grey of the window backgrounds.

All in all i am vey pleased with the library and plan to buy/use it for my mac development using purebasic in the near future.

My configuration is as follows:
Intel Mac Mini 2GB RAM
Snow Leopard 10.6.6
PureBasic 4.51 Mac X86

Thanks,
Alex

Re: mouse events for cocoa event handling guide

Posted: Wed Feb 02, 2011 10:53 pm
by devulder
Thanks for all testers,

I have many many bugs :wink:

I contact in private for next version.