‘-’ in the front of the definition, signifies that the method is an instance method.
‘+’ to define a class method (more on class methods in a future post).
credit : http://macdevelopertips.com/objective-c/objective-c-defining-a-class.html
20 April 2011
เปรียบเทียบชื่อ template ของ xcode ios
Cocoa Touch OpenGL Application -> OpenGL ES Application
Cocoa Touch Tab Bar -> Tab Bar Application
Cocoa Touch Utility -> Utility Application
Cocoa Touch Application -> Window-based Application / View based application
Cocoa Touch List -> Navigation based Application
Cocoa Touch Tab Bar -> Tab Bar Application
Cocoa Touch Utility -> Utility Application
Cocoa Touch Application -> Window-based Application / View based application
Cocoa Touch List -> Navigation based Application
12 April 2011
ความหมายของ prefix "NS"
อ้างอิงจาก wiki ละกัน
NEXTSTEP, an object-oriented, multitasking operating system by NeXT, as well as a prefix for certain system-provided classes in the operating system, such as "NSString"
มันคือ nextstep นั้นเอง
http://en.wikipedia.org/wiki/NS
NEXTSTEP, an object-oriented, multitasking operating system by NeXT, as well as a prefix for certain system-provided classes in the operating system, such as "NSString"
มันคือ nextstep นั้นเอง
http://en.wikipedia.org/wiki/NS
31 March 2011
The Windows Installer Service could not be accessed.
วิธีแก้ปัญหา
The Windows Installer Service could not be accessed. This can occur if you are running Windows in a safe mode, or if the Windows Installer is not correctly installed. Contact your support personnel for assistance.”
ทำตามขั้นตอนดังนี้
Click Start
click Run
พิมพ์ MSIEXEC /UNREGISTER
click OK
Click Start
click Run
พิมพ์ MSIEXEC /REGSERVER
click OK
รอสักครู่
หลังจากนั้นลองทดสอบลงโปรแกรมดูอีกครั้งครับ
The Windows Installer Service could not be accessed. This can occur if you are running Windows in a safe mode, or if the Windows Installer is not correctly installed. Contact your support personnel for assistance.”
ทำตามขั้นตอนดังนี้
Click Start
click Run
พิมพ์ MSIEXEC /UNREGISTER
click OK
Click Start
click Run
พิมพ์ MSIEXEC /REGSERVER
click OK
รอสักครู่
หลังจากนั้นลองทดสอบลงโปรแกรมดูอีกครั้งครับ
24 February 2011
when The ARP entry addition failed: Access is denied.
delete : netsh interface ip delete neighbors "Network card name here" "Gateway.IP.goes.here"
Add : netsh interface ip add neighbors "Network card name here" "Gateway.IP.goes.here" "MAC-address-of-gateway-with-dash-here"
Add : netsh interface ip add neighbors "Network card name here" "Gateway.IP.goes.here" "MAC-address-of-gateway-with-dash-here"
20 January 2011
Java Access Specifiers [Access Modifiers]
The access to classes, constructors, methods and fields are regulated using access modifiers i.e. a class can control what information or data can be accessible by other classes. To take advantage of encapsulation, you should minimize access whenever possible.
Java provides a number of access modifiers to help you set the level of access you want for classes as well as the fields, methods and constructors in your classes. A member has package or default accessibility when no accessibility modifier is specified.
2. protected
3. default
4. public
Java provides a number of access modifiers to help you set the level of access you want for classes as well as the fields, methods and constructors in your classes. A member has package or default accessibility when no accessibility modifier is specified.
Access Modifiers
1. private2. protected
3. default
4. public
19 January 2011
Windows 7 – Enable Telnet
It’s very rare that I use Telnet these days, so it took a long time for me to notice that by default it was not packaged with Windows 7. I did some research and found out that this was also true for Windows Vista. More than likely this was an attempt to make Windows more secure by default, as Telnet is very insecure and whenever you have the choice you should always use SSH. However, with that being said, you can quickly re-enable Telnet by following these steps:
1. Start
2. Control Panel
3. Programs And Features
4. Turn Windows features on or off
5. Check Telnet Client
6. Hit OK
After that you can start Telnet via Command Prompt.
copy ทั้งดุ้นมาจาก http://www.fettesps.com/windows-7-enable-telnet/
1. Start
2. Control Panel
3. Programs And Features
4. Turn Windows features on or off
5. Check Telnet Client
6. Hit OK
After that you can start Telnet via Command Prompt.
copy ทั้งดุ้นมาจาก http://www.fettesps.com/windows-7-enable-telnet/
Subscribe to:
Posts (Atom)