{"id":599,"date":"2010-02-08T10:59:39","date_gmt":"2010-02-08T01:59:39","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=599"},"modified":"2012-01-02T11:06:26","modified_gmt":"2012-01-02T02:06:26","slug":"gnustep%e3%81%a7objective-c%e3%82%92%e5%ad%a6%e3%81%b63","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/599","title":{"rendered":"GNUstep\u3067objective-c\u3092\u5b66\u3076(3)"},"content":{"rendered":"<p>\u3072\u3068\u3064\u3001objective-c\u306e\u30e1\u30bd\u30c3\u30c9\u8a18\u8ff0\u306b\u3064\u3044\u3066\u3001\u7656\u304c\u3042\u308b\u306e\u3067\u66f8\u304d\u76f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u5148\u65e5\u66f8\u3044\u305f\u3001class \u306e\u3068\u3053\u308d\u3001C++ \u3067\u8a00\u3048\u3070\u3001<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nclass A\r\n{\r\npublic:\r\nvoid print( int x );\r\nvoid print( char *s );\r\n};\r\n<\/pre>\n<p>\u306a\u3068\u3053\u308d\u3092\u3001\u66f8\u304d\u63db\u3048\u308b\u3068\u3059\u308c\u3070\u3001<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n@interface A : NSObject\r\n- (void)printInt:(int)x;\r\n- (void)printString:(char*)s;\r\n@end\r\n<\/pre>\n<p>\u3053\u3093\u306a\u98a8\u306b\u3001printInt\u3001printString\u306e\u3088\u3046\u306b\u30e1\u30bd\u30c3\u30c9\u540d\u3092\u5909\u3048\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u30e1\u30bd\u30c3\u30c9\u540d\u306e\u5de5\u592b\u306b\u306f\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&#8211; (\u623b\u308a\u5024)\u30ad\u30fc\u30ef\u30fc\u30c9:(\u578b)\u5f15\u6570 \u30ad\u30fc\u30ef\u30fc\u30c9:(\u578b)\u5f15\u6570<\/p>\n<p>\u306e\u3088\u3046\u306b\u30e1\u30bd\u30c3\u30c9\u304c\u69cb\u6210\u3055\u308c\u307e\u3059\u304c\u3001\u6700\u521d\u306e\u30ad\u30fc\u30ef\u30fc\u30c9\u306fcocoa\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u898b\u308b\u3068\u547d\u540d\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>RGB\u5024\u3092\u5236\u5fa1\u3059\u308b\u3001\u6b21\u306eC++\u306e\u30af\u30e9\u30b9\u3092\u8003\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nclass RGB\r\n{\r\nfloat _r, _g, _b;\r\npublic:\r\nvoid setColor( float r, float g, float b );\r\nint getRed();\r\nint getGreen();\r\nint getBlue();\r\n};\r\n<\/pre>\n<p>\u3053\u308c\u3092\u76f4\u3059\u5834\u5408\u306f\u3001<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n@interface RGB : NSObject\r\n{\r\nfloat _r, _g, _b;\r\n}\r\n- (void)setColorRed:(float)r green:(float)g blue:(float)b ;\r\n- (float)getRed ;\r\n- (float)getGreen ;\r\n- (float)getBlue ;\r\n@end\r\n<\/pre>\n<p>\u306e\u3088\u3046\u306b\u3001\u300csetColorRed\u300d\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u540d\u3092\u4ed8\u3051\u307e\u3059\u3001\u3001\u3001\u3068\u3044\u3046\u304b\u3001\u300csetColorRed:green:blue\u300d\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u540d\u3092\u4ed8\u3051\u307e\u3059\u3001\u3068\u3044\u3046\u8a00\u3044\u65b9\u304c\u6b63\u3057\u3044\u3067\u3059\u3002<br \/>\n\u3068\u8a00\u3046\u306e\u3082\u3001\u533a\u5207\u308a\u65b9\u3068\u3057\u3066\u306f\u3001\u300csetColor red:green:blue\u300d\u306e\u3088\u3046\u306b\u3001\u30e1\u30bd\u30c3\u30c9\u540d\u3068\u6700\u521d\u306e\u5f15\u6570\u306e\u30e9\u30d9\u30eb\u3092\u96e2\u3057\u3066\u8003\u3048\u308b\u306e\u304c\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>NSMutableString<br \/>\n<a href=\"http:\/\/www.gnustep.org\/resources\/documentation\/Developer\/Base\/Reference\/\">http:\/\/www.gnustep.org\/resources\/documentation\/Developer\/Base\/Reference\/<\/a><\/p>\n<p>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u308b\u3068\u3001\u305d\u3093\u306a\u611f\u3058\u3067\u591a\u91cd\u5b9a\u7fa9\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\uff5e\uff5e\uff5e<br \/>\n\u899a\u66f8 mac mini \u8cfc\u5165\u306e\u6e96\u5099\u3002<\/p>\n<p>Windows \u30de\u30b7\u30f3\u304b\u3089 Mac \u3092\u64cd\u4f5c\u3059\u308b<br \/>\n<a href=\"http:\/\/tokyo.secret.jp\/macs\/vnc_mac.html\">http:\/\/tokyo.secret.jp\/macs\/vnc_mac.html<\/a><\/p>\n<p>\u8003\u3048\u3066\u307f\u305f\u3089\u3001VNC \u63a5\u7d9a\u3067\u3082\u3044\u3044\u3093\u3060\u3002\u82e5\u5e72\u3082\u305f\u3064\u304f\u3060\u308d\u3046\u3051\u3069\u3001\u57fa\u672c\u306f xcode \u3057\u304b\u4f7f\u308f\u306a\u3044\u3057\u3002\u3042\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3060\u3051\u306a\u3089\u3070\u3001telnet\u3067\u7e4b\u3050(\u7b11)\u3068\u3044\u3046\u8352\u696d\u3082\u3042\u308b\u3057\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001\u3053\u3053\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u65b9\u6cd5\u3060\u3068\u3001mac \u306e\u753b\u9762\u4e0a\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u308c\u306a\u3044\u3068\u99c4\u76ee\u306a\u306e\u3067\u3001mac \u306b\u3082\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u304c\u5fc5\u8981\u3001\u3068\u3044\u3046\u96e3\u70b9\u304c\u3042\u308b\u3002<\/p>\n<p>\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3001\u30c7\u30a3\u30b9\u30d7\u30ec\u30a4\u7121\u3057\u306e windows server \u306b\u7e4b\u3052\u308b\u3088\u3046\u306b\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3057\u305f\u3044\u306e\u3067\u3001<\/p>\n<p>1.mac mini \u306e\u96fb\u6e90ON<br \/>\n2.windows \u30de\u30b7\u30f3\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u3057\u3066\u4f5c\u696d<br \/>\n3.windows \u30de\u30b7\u30f3\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u3067 mac \u306e\u96fb\u6e90OFF<\/p>\n<p>\u304c\u3001\u3067\u304d\u306a\u3044\u3068\u56f0\u308b\u3002<br \/>\n\u307e\u3042\u3001FreeBSD \u30d9\u30fc\u30b9\u3060\u304b\u3089\u3001<\/p>\n<p>1.mac mini \u306e\u96fb\u6e90ON<br \/>\n2.windows \u304b\u3089 telnet \u30ed\u30b0\u30a4\u30f3\u3057\u3066 vnc \u30b5\u30fc\u30d0\u7acb\u3061\u4e0a\u3052<br \/>\n3.windows \u30de\u30b7\u30f3\u304b\u3089 vnc \u63a5\u7d9a\u3057\u3066\u4f5c\u696d<br \/>\n4.windows \u30de\u30b7\u30f3\u304b\u3089 mac mini \u306e\u96fb\u6e90OFF<\/p>\n<p>\u3067\u3082\u3001\u3067\u304d\u308b\u3093\u3067\u3057\u3087\u3046\u3002\u591a\u5206\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3072\u3068\u3064\u3001objective-c\u306e\u30e1\u30bd\u30c3\u30c9\u8a18\u8ff0\u306b\u3064\u3044\u3066\u3001\u7656\u304c\u3042\u308b\u306e\u3067\u66f8\u304d\u76f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u5148\u65e5\u66f8\u3044\u305f\u3001class \u306e\u3068\u3053\u308d\u3001C++ \u3067\u8a00\u3048\u3070\u3001 class A { public: void print( int x );  &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/599\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":2742,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,28],"tags":[],"class_list":["post-599","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev","category-objc"],"jetpack_featured_media_url":"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2012\/01\/windows-objective-c-title.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=599"}],"version-history":[{"count":2,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/599\/revisions"}],"predecessor-version":[{"id":2736,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/599\/revisions\/2736"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media\/2742"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=599"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}