QTTimeFromString() doesn’t seem to work as it is explained.
If there is a “day” part in the string, it is not properly converted.
( The 2nd to the last example. )
The 2nd to the last example has an additional string at its front. That is why it couldn’t be converted properly.
The document should explain more about the [...]
Archive for the ‘Cocoa’ Category
18 Dec
Correct String format for QTTimeFromString()
11 Dec
WebView에서 JavaScript debugging하기
Google의 Open Source를 보면 쓸만한거 투성이다. 그런데 Google의 특성상 대개 웹 프로그래밍을 해야하는 것이다.
자.. 그렇다면 그것을 Cocoa 프로그램에서 쓰려면 여러가지 방법이 있겠는데, 그 중 WebKit의 WebView에 HTML을 로딩해서 이용하령하는 것이 가장 간단한 경우가 될 것이다. 그런데 그럴 경우, 로딩되는 HTML과 그 안의 JavaScript는 어떻게 디버깅을 할 것인가?
그냥 순수하게 JavaScript만으로 되면, 그냥 Safari나 Firefox등 웹 브라우저에 [...]
21 Nov
Objective-C를 처음 접했을때 갖던 생각에 대한 답이 있는 글..
역시 Cocoa with Love이다.
Objective-C’s niche: why it survives in a world of alternatives
Objective-C와 C++의 compiler 측면에서의 차이가 나와 있다. 더 구체적으로 말하자면 Virtual Table (vTable)에 의한 구현과 message passing에 의한 구현의 차이점이다.
물론 Objective-C엔 이 외에도 다른 장점이 있다. 이젠 C# .NET이나 C++ .NET에서도 누릴 수있는, Category나 Protocol과 같은 것이 그것이다. 참 단순한 생각이 아닐 수없겠지만, [...]
21 Nov
Objective-C의 장점을 살린 Thread-safe NSHost
Cocoa with Love에 Objective-C의 장점을 잘 살린, NSHost를 thread-safe하게 구현하는 법에 대해서 나왔다.
사실 여기엔 두가지 기법이 사용되는데, Objective-C의 runtime을 이용한, 이미 있는 method를 새 method로 갈아치우는 법( swizzling이라는 slang으로 표현하고 있다.)과 NSOperation을 이용한 asynchronous 한 동작이다.
NSOperation은 잘 살펴보지 않아서 몰랐는데, 자체적으로 main()함수를 가지고 있을 수있나보다.
예전에 NSOperation 설명서 볼때 못 본거 같은데…..
아무튼 좋은 팁이고, Objective-C를 사용하는 [...]
12 Nov
Mac OS X에서 System folder로 파일 카피할 때의 권한 문제
Unix에선 가능하면 시스템 폴더로 파일을 카피하지 않는게 좋다. 사실 모든 OS에서 다 그렇다. 이걸 안지키고 막가파식으로 간 OS가 바로 Windows이지 않는가? 아무 프로그램이나 Windows 디렉토리 내에 다 써대고 말이지..
하지만 가끔 필요할 때가 있다. 예를 들어 보자. Final Cut Pro의 plugin들은 /Library/Application Support/Final Cut Pro 어쩌구/Plugin에 들어간다. 만약 Plugin이 필요로하는 어떤 화일을 거기에다 넣어 놓는다고 [...]
1 Nov
What’s new in Interface Builder 3.2 – II
OK. Mr. bonaldi left a comment to my previous post, What’s new in Interface Builder 3.2.
According to him, it is moved to “Library” tab of “Library” window.
Let’s take a look at where it is.
OK. it is there. However, isn’t it strange? This is not about “Oh.. it’s at other place”.
When you take care of a [...]
30 Oct
What’s new in Interface Builder 3.2
From Interface Builder 3.x, it seemed to me that Apple people wants to separate Xcode and Interface Builder more strictly. One major difference between IB 2.x and 3.x was that you are not supposed to create objects with IB anymore. You should create an object using Xcode, then IB recognizes the object. Also, creating IBOutlet [...]
24 Oct
iSight camera and iPhone simulator
Did I point out that there were problems with iPhone/iPod touch for developers?
Hmm.. I don’t remember it.
Anyway, one big problem is that developers should buy any new iPhone/iPod touch to developer for any added H/W features. I have an iPod touch, but have some idea of using a camera in an iPhone. Then… well.. I [...]
20 Oct
QTMovieView IB PlugIn on Snow Leopard problem
Recently I found a weird problem with QTMovieView IB Plug-In on Snow Leopard.
If you create an XIB or NIB file on a Snow Leopard and add a QTMovieView to a Window, its movie controller is not displayed even though you check “Show controller” check box.
As you can see, they are exactly same as far as [...]
17 Oct
The sample project location : People at Apple should think about it again!
Well, finally I got to write a post about the location of Sample projects location.
It has used to be /Developer/Examples. However after introduction of iPhone SDK, the sample projects began to be located in /Developer/Documentation/DocSets/*.docset/Contents/Resources/Documents/samplecode.
Then why did they leave the /Developer/Example folder?
Also, when you search sample codes using the Xcode’s search feature, it presents a [...]
Entire (RSS)
Recent Comments