Mac 에 해당하는 글3 개
2007/02/12   SWFObject add-on: MouseWheel on Mac
2006/07/12   Eclipse and Mac OS X
2006/06/20   Shift + Space Bar로 한영전환하기

flash/Tip | 2007/02/12 17:21
관련사이트
http://blog.pixelbreaker.com/flash/swfmacmousewheel/

다운로드

mac os 상에서의 Flash Player 는 마우스 휠을 감지하지 못한다. 따라서 이 문제를 해결하려면
플래시 내부에서 마우스 휠반응을 체크하는 것이 아니라 자바스크립트로 마우스 휠을 감지하여
플래시로 알려줘야 된다.

SWFMacMouseWheel 라는 자바스크립트 파일을 사용하여 플래시의 내부 함수를 호출한다.
그리고 플래시에서는 ExternalInterface를 사용하여 자바스립트에서 호출하는 함수를 받아서
마우스 휠 반응을 처리한다.

<actionscript code>

import flash.external.ExternalInterface;
import com.pixelbreaker.event.EventBroadcaster;
/**
 * @author Gabriel Bucknall
 *
 * Class that supports using the mouseWheel on Mac OS, requires javascript class
 * swfmacmousewheel.js
 */
class com.pixelbreaker.ui.MouseWheel
{
 private static var isMac:Boolean;
 private static var macBroadcaster:EventBroadcaster;
 
 private static function main():Void
 {
  isMac = System.capabilities.os.toLowerCase().indexOf( "mac" ) != -1;
  if( isMac )
  {
   macBroadcaster = new EventBroadcaster();
   ExternalInterface.addCallback( "externalMouseEvent", MouseWheel, MouseWheel.externalMouseEvent );
  }
 }
 /**
  * Add a listener for using the mouseWheel
  * obj param must have an "onMouseWheel" method to be called.
  */
 public static function addListener( obj:Object )
 {
  if( !isMac ) MouseWheel.main();
  if( isMac )
  {
   macBroadcaster.addListener( obj );
  }else{
   Mouse.addListener( obj );
  }
 }
 
 /**
  * Remove a listener
  */
 public static function removeListener( obj:Object ):Void
 {
  if( isMac )
  {
   macBroadcaster.removeListener( obj );
  }else{
   Mouse.removeListener( obj );
  }
 }
 
 private static function externalMouseEvent( delta:Number ):Void
 {
  macBroadcaster.broadcastMessage( "onMouseWheel", delta );
 }
}

<frame code>

MouseWheel.addListener(this);

타임라인 상에 MouseWheel Class 를 사용하여 리스너를 생성한다.



<html code>

<script type="text/javascript">
     // <![CDATA[
      var so = new SWFObject('test.swf', 'website', '100%', '100%', '8', '#FFFFFF');
      so.useExpressInstall('js/expressinstall.swf');
      so.addParam('menu', 'false');
      so.addParam('scale', 'noscale');
      so.addParam('salign', 'lt');          
     
 
      //change below
     if(so.write('flashcontent')){
        var macmousewheel = new SWFMacMouseWheel( so );
      }
     // ]]>
</script>

SWFObject 를 사용하여 swf 파일을 임베드하였다. 마지막 줄 코드만 삽입하면 html
상에서 플래시로 마우스 휠반응을 감지하여 값을 보낼수 있다.




 
 
태그 : ExternalInterface, flash, Mac, mouseWheel, Tip
이 글의 관련글(트랙백) 주소 :: http://kimkijeung.com/trackback/85

Name 
Password 
Homepage 
  secret
Comment 
  글쓰기

Mac | 2006/07/12 21:56

Editor's Note: To learn more about Eclipse and Java development on Mac OS X, register for the Apple Worldwide Developers Conference 2004.

Thanks to its highly optimized but fully standard Java implementation, Mac OS X has garnered a reputation amongst developers as an excellent platform for developing and deploying Java applications. The most recent release of Eclipse, the well-respected open-source IDE, for Mac OS X only strengthens the case, as this flexible and highly extensible tool is a favorite of many Java developers. This article provides a quick overview of Eclipse for Mac OS X and explains how to download the latest version and get started.

What is Eclipse?

Eclipse was originally designed for building integrated development environments (IDEs), that were versatile enough to create applications for a range of programming languages. The intention was to provide tools makers with an IDE that would include mechanisms and rules that would consistently result in seamless tools integration. Since then, Eclipse has evolved to include an IDE that provides benefits for a wide range of development projects.

Because it is Java-based, Eclipse includes the Java Development Kit (JDK); and yet its architecture supports all major programming languages from C/C++ to Cobol.

Eclipse is a free download, and is available on a number of platforms. Since IBM launched Eclipse in November 2001, more than 18 million download requests have been logged from over 125 countries.

A growing consortium of high-profile companies and organizations are actively supporting and extending Eclipse's ongoing development and giving the platform momentum. These organizations contribute support and technology, and they determine the direction and scope of Eclipse's growth.

Highly Extensible

Because it is a highly extensible, open framework, Eclipse allows you to use—and create your own—plug-in tools to extend the basic Eclipse IDE for developing your applications.

This means that if you are developing an application using Eclipse for Mac OS X, and you need a special tool to facilitate development on your project, you can choose from literally hundreds of available plugin tools that work seamlessly with Eclipse and with any of the plugin tools you are using.

These plugins, which have been developed by a wide variety of companies and individuals, run the gamut from traditional coding tools such as source code analyzers, graphical layout tools, and compilers to productivity enhancers like bug trackers, source code managers, and even games. When you download and unzip the plugin tools, they are automatically integrated into the Eclipse framework enabling you to create high-quality applications in less time.

Eclipse's architecture has fostered a worldwide community of plugin developers. As more plugins are created that address the entire development cycle, Eclipse becomes increasingly useful, and popular.

The range of plugins is amazing. One biotech consultant uses the Jmechanic plugin, saying, "our clients could quickly identify many performance problems, and could then decide whether it was something they wanted to fix, outsource, or live with." Using the Eclipse plugin saved licensing costs, and gave each developer on their team the freedom to run a time profile before checking in their code.

Another developer uses Eclipse as his primary IDE, and says, "the Sysdeo Tomcat launcher plugin is essential for my daily work, because it allows me to do runtime debugging of my web application from within Eclipse."

Figure 1 shows the Eclipse user interface on Mac OS X, with an open example of a sample plug-in project.

Eclipse User Interface on Mac OS X

Figure 1: Eclipse User Interface on Mac OS X

Speed development

You will quickly discover that one of the reasons Eclipse is popular with developers is that it is intuitive to learn and use. The Eclipse framework includes the workbench component that provides Eclipse with its user interface, a collection of views and editors. When you select a perspective, you are specifying the set of tools you need to use for the task at hand. This elegant workbench metaphor makes the Eclipse environment highly intelligent.

Eclipse's features are well implemented and very effective, and are designed to increase the speed of the development cycle by automating tedious tasks that distract you from coding.

Other strengths include built-in CVS integration that makes it convenient to synchronize code with the CVS server. One Eclipse user says, " the Synchronize view makes it easy to merge changes and view changes before I decide to update. The Annotation view allows me to determine when each line of a file was added and who added it. This feature is great for tracking down bugs."

Eclipse integrates a best-of-breed implementation of features such as:

  • Code Refactoring - Allows you to reorganize and make other global changes to your code such as changing the name of a method or changing parameters. Refactoring is a way of making system-wide code changes without affecting the behavior of the program.
  • Content Assist - Displays a list of phrases that you can select from to complete what you are typing when editing Java code. This list is based on an ongoing analysis of your Java code.
  • Quick Fix - Enables you to correct a wide variety of problems, from spelling errors and missing import statements to declaring local variables and classes. The Java editor offers corrections to problems found while typing and after compiling.
  • Extract Method - Creates a method for the highlighted code.
  • Unit Testing - Provides you with an easy way to run all tests in a specified Java project, source folder, or package.
  • Import Management - Provides you with several features that help you manage import statements.
  • Documentation Lookup - Displays documentation relating to the method you point to with the cursor. The comment displayed shows the method name, documentation for method parameters, and the return value.
  • Debugger - Enables you to detect and diagnose errors in your programs running either locally or remotely. The debugger includes "hot code replace" that allows you to change source code during a debugger session.
Cross-Platform Development Teams

When used with Eclipse, Mac OS X supports heterogeneous development teams, enabling you to mix Mac OS X, Linux, UNIX and XP computing environments. This means that if you have a dozen Windows users and a dozen Mac users on your development team, these team members on different platforms can work on the same project without barriers.

Eclipse is great for organizing multiple projects with a large team of developers who can work collaboratively. "I found that Eclipse gave us a very clear picture of the hundred or so interlocking projects at one client" a developer told us. "It made it easy to see where these projects connected, and allowed us to refactor core libraries easily." This developer explained that their bid to reduce inter-project dependencies for a client required splitting a dozen core projects into separate units. With Eclipse, one of their team finished the coding work in under a week. He says, "I suspect that the manual method would have taken a month, and thus would not have been cost effective. You cannot have your core libraries in turmoil for that long."

In fact, in some industries, such as biotech, a significant percentage of developers currently are using Mac OS X and PowerBooks because they can develop applications for Mac, Windows, Linux, and Solaris deployments, with one box. Our biotech developer says, "Most of our work is in Java, though we also do Perl, C++, MATLAB, and whatever else our clients ask. We choose this platform because the Java implementation is good, we have access to a full underlying Unix layer, and we have a good suite of productivity applications. Without Mac OS X, we would likely have to carry around two different machines, with a dual boot Linux option on at least one of them."

Why Do Java Development on the Mac?

The ease of use of Mac OS X, the power and stability of UNIX, the integration of Java into Mac OS X and the availability of great development environments like Eclipse make the Mac a great Java development environment.

UNIX users feel at home in Darwin, the robust UNIX-based environment that underlies Mac OS X. That environment is accessible at any time from the Terminal application. All of the standard UNIX utilities and scripting languages are included in Mac OS X—editors such as emacs, vim and pico; file management tools such as cp, mv, ls and gnutar; shell scripts including bash, tcsh (csh) and zsh; and scripting languages such as Perl, PHP, tcl, Ruby and Python. For Java-based web engineers, Apache, Tomcat and JBoss are also included, so you can do JSP development or enterprise class J2EE applications.

Mac OS X also gives you a highly mobile platform. The PowerBook series provides a high-powered workstation that is completely portable and allows you to pick up and go, and then quickly resume work at a new location. Even as you open your laptop, network connections are being reestablished and the computer is immediately up and running.

Apple has made Java a core component of Mac OS X—every Mac ships with the full version of Java 2, Standard Edition included—meaning you have the Java Developer Kit (JDK) and the HotSpot virtual machine (VM) without downloading, installing or configuring anything. And because Apple has optimized Java on Mac OS X, Java applications act as first-class citizens on Mac OS X.

In addition to Eclipse many of the industry leading tools are available, including IntelliJ's IDEA, Borland's JBuilder, Oracle's JDeveloper, and Sun's NetBeans, just to name a few. Mac OS X also includes free developer tools which support rapid Java development right out of the box.

Getting Started

You can get a copy of Eclipse by visiting the Eclipse download page and downloading the latest build. (The current version of Eclipse requires Mac OS X v10.3 Panther.) All builds are delivered as .ZIP files.

Download and install Eclipse

  1. Using your Safari browser, go to the eclipse.org Website.
  2. Click Downloads.
  3. Click Main Eclipse Download Site. If you are not located in North America, use the mirror site closet to your location.
  4. Click the name of the Release Build you want. At the time of this writing, the "3.0 Stream Stable Build" is the latest developer preview of version 3.0. This version is currently fine for daily use.
  5. Under "Eclipse SDK, find "Mac OSX (Mac/Carbon) (Supported Versions)"—the file name is also displayed. Select either the HTTP or FTP download option.
  6. After reading the Notes, click "Download" at the bottom of the page.
  7. When the download is complete, unzip the archive into the appropriate folder.

    (Older versions of Stuffit truncated file names and caused problems with Eclipse. Make sure you are using the appropriate version.)

    Your installation is now complete.

  8. Click the Eclipse icon to launch the IDE.

The first time you run Eclipse, it completes a few remaining install tasks—such as creating a workspace directory—before the Eclipse environment appears.

Work through the tutorials

With Eclipse installed and running, you can begin by looking at an overview of Eclipse features and plugins installed on your system, and then doing a tutorial that guides you through building a simple Java application.

To see the overview of the Eclipse features: from the Help menu, choose About Eclipse Platform

To do a tutorial on building a simple Java application: from the Help menu, choose Java Development User Guide > Getting Started > Basic Tutorial

Resources for More Information

Posted: 2004-06-07


 
 
태그 : Eclipse, Mac
이 글의 관련글(트랙백) 주소 :: http://kimkijeung.com/trackback/39

Name 
Password 
Homepage 
  secret
Comment 
  글쓰기

Mac | 2006/06/20 01:51

오른쪽 Alt, Ctrl를 사용하려거나
한/영, 한자 키를 Shift-space, Ctrl-space로 하기 위해서
키보드 종류 3의 드라이버를 까시는데,

usb 키보드를 쓰신다면 이것을 고를 수가 없지요.
이럴 경우에는...

1. ps/2 키보드를 연결하고 드라이버를 종류3으로 깔고
다시 usb를 연결하거나..

2. 처음 윈도우 설치시 종류3을 선택

하는 방법이 있겠지만, 여러가지로 불편한 것은 사실이죠..

이때 다음과 같이 레지스트리를 바꾸면 됩니다.

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\i8042prt\Parameters

안의 값을..

LayerDriver Kor --> KBD101C.DLL
OverrideKeyboardIdentifier --> PCAT_101CKEY
OverrideKeyboardSubtype --> 5
OverrideKeyboardType --> 8

종류3은 kbd101c에 해당하며, Type 8은 한글 키보드 인것 같고,
Subtype 5가 종류3을 지칭하는 것 같습니다.


출처 : 키보드 매니아 http://www.kbdmania.net


 
 
태그 : Mac, Tip
이 글의 관련글(트랙백) 주소 :: http://kimkijeung.com/trackback/35

Name 
Password 
Homepage 
  secret
Comment 
  글쓰기


[PREV] [1] [NEXT]

 
전체 (105)
flash (74)
math&physics (4)
programming (11)
Flex2 (1)
Mac (2)
photo (0)
project (6)
주저리주저리 (3)
유용한 자료들 (1)
diary (0)
Book (1)
web (2)
«   2009/01   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31