[MacRuby-devel] [PATCH] Adding support for private frameworks
Benjamin Stiglitz
ben at tanjero.com
Thu Feb 28 08:55:28 PST 2008
Let’s just say I needed it.
---
objc.m | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/objc.m b/objc.m
index e8c5cd9..7e0886d 100644
--- a/objc.m
+++ b/objc.m
@@ -1890,6 +1890,10 @@ rb_require_framework(VALUE recv, VALUE framework)
snprintf(path, sizeof path, "/Library/Frameworks/%s.framework", cstr);
TRY_LOAD_PATH();
+
+ snprintf(path, sizeof path,
+ "/System/Library/PrivateFrameworks/%s.framework", cstr);
+ TRY_LOAD_PATH();
#undef TRY_LOAD_PATH
--
1.5.4.2
More information about the MacRuby-devel
mailing list