WebKit 對於開啟新視窗事件的處理

????????????????????????????????????????????? target=”_blank”??? <a href="http://zonble.net/" target="_blank">??????????? Javascript ? window.open() ???

???????????????????????????????? WebKit ? Cocoa ?????????????????????????????? WebView ?????????WebView ???? Policy Delegate ? webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener: ?? Method??????Javascript ? window.open()????? Policy Delegate???? UI Delegate ?? webView:createWebViewWithRequest:?

?????????????????? WebView ????????? target=”_black” ???????WebView ?????????? Delegate Object?????????????????????????????????????????????????????????????????????????????

???? window.open() ??????????????? WebView ??????????? WebView ??????? webView:createWebViewWithRequest: ????????? WebView ?????? WebView ???????? window.open() ??????????? URL?????????????????????????????? Bug?? webView:createWebViewWithRequest: method ??????? NSURLRequest ?????? NULL?

Continue reading

Leopard 的 Garbage Collection

? 10.5 Leopard ???Mac OS X ???? Objective-C 2.0 ??????????????? Garbage Collection ????????? Obj-C ??????????????????????? autorelease ????? release??????????????? release??????????????????????????????…

???

???????????????????????? Leopard ?? GC???????????????????? GC ?????????????????? GC ???????? Xcode 3???????????????????? Leopard ??????? GC ?????????????? 10.5 SDK ??????? plugin???? plugin ??????? GC ? Class?????? plugin?????????? crash…?

?? Xcode 3 ?????????Xcode 3 ???????? plugin????????????? Xcode 3 ??? plugin???????? ColorBy.ColorPicker ?? Color Picker?????????????????????????????? Color Picker ???????????? Xcode ????????????? Color Picker ???? Tiger ?? Leopard ?????????? 10.4u SDK ??????????????????? Color Picker?????????????? Xcode 3 ???

??? Leopard ????????????????????? GC ??????? IKImageFlowView ??????????????? Color Picker ???? Color Flow ??????????????????? Apple ?????? Finder ? iTunes ???? Cover Flow???????????? Carbon ????? Cover Flow ?…?

?????????Color Picker ????????????????????????????????????????????????????? ColorPicker??

colorBy.colorPicker

colorBy.colorPicker

?? 0.1 ??http://zonble.googlecode.com/files/colorBy.colorPicker.0.1.zip

.colorPicker ???????????????? colorBy.colorPicker??????? colorPicker ?? color??????????? Cocoa Developer ?? Color Picker?????????????? NSColor ???????????? colorBy.colorPicker ???????? ~/Library/ColorPickers ????? /Library/ColorPickers ??????????? Cocoa ?????? Color Picker??????????????????????????? Leopard ???????? Tiger ????

Continue reading