21 April 2014, 20:49 | #1 |
Registered User
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
Posts: 204
|
Proper ReAction coding
I have been looking at OS3.9/OS4 ReAction source code from several different programmers to get a base idea for my code. I came across this blog post:
http://www.os4coding.net/blog/trixie...on-programming I agree with not using the macros as things could/will change down the road. Code:
WindowBase = IIntuition->OpenClass("window.class", 52, &WindowClass); Does anyone know of an example source code that does it "the correct way" in all aspects? Proper way to: Open libraries Open classes Layout gadgets Listen for messages Close everything it opened Exit The example could be just 1 or 2 gadgets, BUT NO MACROS, NO SHORTCUTS, for any of the steps. I know everyone has their own style, but maybe a modern baseline should be laid out so things are done the current and proper way OS4 expects things to be done. |
21 April 2014, 21:06 | #2 |
We need more scans!
Join Date: Feb 2010
Location: Copenhagen / Denmark
Age: 49
Posts: 326
|
Perhaps this can be of some use to you?
http://wiki.amigaos.net/index.php/DeveloperDoc:Main |
24 April 2014, 04:27 | #3 |
Registered User
Join Date: Sep 2013
Location: Bettendorf, IA, USA
Age: 52
Posts: 204
|
I started a project with the above example as a base. I am on OS3.9 and get 'undefined identifier "IIntuition"' error message. I can't find where IIntuition is defined in the includes. I assume it is not in my V39 intuition/intuition.h and is only for OS4?
@Thomas: I compiled all of your ReAction examples and they ran. You don't use it at all. Is there a work-around that is still "proper"? |
24 April 2014, 07:34 | #4 |
AmigaMan
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 766
|
I think IIntuition is only for AOS4 and so...
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Proper startupcode in asm? | oRBIT | Coders. General | 9 | 19 May 2010 20:16 |
Proper HD and WinUAE | Macca | support.WinUAE | 54 | 14 August 2007 07:43 |
cdtv proper configuration | truestep | New to Emulation or Amiga scene | 5 | 19 July 2007 15:54 |
KICK OFF 2 v1.4e - A proper crack | manicx | Games images which need to be WHDified | 0 | 07 December 2002 15:52 |
Proper crack of One step beyond | Drake1009 | request.Old Rare Games | 6 | 04 March 2002 14:27 |
|
|