开发者

Why isn't NSRegularExpression included in foundtion.framework for Mac Apps, as it is for iOS?

Why isn't NSRegularExpression included in foundtion.framework for Mac开发者_如何转开发 osx, as it is for iOS?


I'd be very surprised if NSRegularExpression didn't make an appearance in 10.7, but you have to bear in mind that it was new in iOS release 4, which is a fairly recent release.

As such, I suspect it'll become part of the standard Mac OS foundation once it's slightly more mature.


NSRegularExpression is included in Foundation in the newly-released OSX 10.7 :)


Until 10.7 arrives you can use CocoaOniguruma


I miss real regex, too. However there is a similar functionality:

NSPredicate

and you may want to check out a related Stackoverflow thread.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜