X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/e40d5faae0d59067143dfbdf060532fd1f3f84c3..6219596ceecd7526a4d929476b59cf0846b25e6d:/website/index.html?ds=sidebyside diff --git a/website/index.html b/website/index.html index b87b6e1..6d24685 100644 --- a/website/index.html +++ b/website/index.html @@ -17,7 +17,7 @@

Where do I get it?

-

Right now you can find releases of it at: http://www.cycript.org/debs/. This package depends on MobileSubstrate and libffi (both of which are in Cydia).

+

Right now you can find releases of it at: http://www.cycript.org/debs/. This package depends on MobileSubstrate and libffi (both of which are in Cydia). Note that Cycript is an open source project, with its source code available at: http://svn.saurik.com/repos/cycript/trunk/. There is an IRC channel at irc.saurik.com, #cycript.

So, how do I use it?!

@@ -159,9 +159,9 @@ cy# view->_layer cy# (*view)._layer "" -

Fully-fledged Objective-C classes can also be declared using @class, which blurs the line between Objective-C's @interface and @implementation. Right now, declaring instance variables are not supported, but will be in a future version: for now you must provide an empty variable block.

+

Fully-fledged Objective-C classes can also be declared using @implementation, which also takes on functionality of Objective-C's @interface. Right now, declaring instance variables are not supported, but will be in a future version: for now you must provide an empty variable block.

-cy# @class TestClass : NSObject { +<xmp>cy# @implementation TestClass : NSObject { cy> } cy> - description { cy> return "test"; @@ -170,15 +170,15 @@ cy> @end cy# [new TestClass init] "test" -

The @class syntax can also be used to extend existing classes in a manner similar to categories. Note that type signatures, however, are not yet supported, so you end up heavily restricted in what you can add via this mechanism. In this case, one can also use a parenthesized expression as the class name.

+

The @implementation syntax can also be used to extend existing classes in the form of an Objective-C category. Note that type signatures, however, are not yet supported, so you end up heavily restricted in what you can add via this mechanism. In this case, one can also use a parenthesized expression as the class name.

-cy# @class NSObject +<xmp>cy# @implementation NSObject (MyStuff) cy> - description { return "replaced"; } cy> @end cy# var o = [new NSObject init] cy# o "replaced" -cy# @class ([o class]) - description { return "again"; } @end +cy# @implementation ([o class]) (MyStuff) - description { return "again"; } @end cy# o "again"