2012-01-01から1年間の記事一覧

Key-Value Coding

・Key-Value Coding略してKVCなるものがあるということやってみた。 ソース #import <Foundation/NSAutoreleasePool.h> #import <Foundation/NSObject.h> #import <Foundation/NSString.h> @interface MyClass:NSObject @property(copy) NSString *name; @end @implementation MyClass @synthesize name; @end int main () { id pool = [[NSA</foundation/nsstring.h></foundation/nsobject.h></foundation/nsautoreleasepool.h>…

makefile作ってみる

TARGET = test CC = gcc INCLUDES = -I/usr/include/GNUstep CFLAGS = -fconstant-string-class=NSConstantString LIBS = -lgnustep-base SRCS := $(wildcard *.m) OBJS := $(SRCS:%.m=%.o) $(TARGET):$(OBJS) $(CC) $(INCLUDES) $(CFLAGS) -o $@ $^ $(LIBS)…

Objective-Cに触れてみる

・Objective-Cに必要なものをaptしてみる。 aptメモ gobjc gobjc-multilib・Objective-Cのソースをみてみる。 #import @interface @implementation @end [] id見慣れる単語に戸惑う。・とりあえずソースを写経してみる。 単語@implementationに戸惑う。 イン…

grub

/etc/default/grubに以下を追加 GRUB_DISABLE_OS_PROBER=true ‘GRUB_DISABLE_OS_PROBER’ Normally, grub-mkconfig will try to use the external os-prober program, if installed, to discover other operating systems installed on the same system and g…

virtualbox

vdiファイルから変換 vboxmanage clonehd --format VDI|VMDK|VHD|RAW srcファイル distファイルディスクイメージから変換 vboxmanage convertfromraw --format VDI|VMDK|VHD srcファイル distファイル

live cd or usb

apt squashfs-tools mkisofs live-helper:古い live-build:新しい live-initramfs live-boot live-configcommand lb config --mode debian