mouse events for cocoa event handling guide

Mac OSX specific forum
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

mouse events for cocoa event handling guide

Post by cajomi »

Someone could help me programming cocoa events for mouse tracking.
Johannes
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Re: mouse events for cocoa event handling guide

Post 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.
Check out OOP support for PB here!
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

Re: mouse events for cocoa event handling guide

Post by cajomi »

Oh, that is bad. All 8 bit does not work?
devulder
New User
New User
Posts: 9
Joined: Fri Dec 19, 2008 5:52 pm

Re: mouse events for cocoa event handling guide

Post 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,
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

Re: mouse events for cocoa event handling guide

Post by cajomi »

Many thanks,
now I am waiting.......
Johannes
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

Re: mouse events for cocoa event handling guide

Post by cajomi »

Hi devulder, (don´t know, whether is name the real)

can you give me a link?

Johannes
devulder
New User
New User
Posts: 9
Joined: Fri Dec 19, 2008 5:52 pm

Re: mouse events for cocoa event handling guide

Post 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.
cajomi
User
User
Posts: 45
Joined: Thu Dec 04, 2008 9:53 am
Location: Essen

Re: mouse events for cocoa event handling guide

Post by cajomi »

Hi,

many thanks, I will try it and post it.

Johannes
alexioklini
New User
New User
Posts: 1
Joined: Sun Jan 30, 2011 1:38 pm

Re: mouse events for cocoa event handling guide

Post 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
devulder
New User
New User
Posts: 9
Joined: Fri Dec 19, 2008 5:52 pm

Re: mouse events for cocoa event handling guide

Post by devulder »

Thanks for all testers,

I have many many bugs :wink:

I contact in private for next version.
Post Reply