Pointer.new_with_type("v")-is-unsized shocker
Hi guys, I just noticed that in 0.5b2 on Snopard,
Pointer.new_with_type("v")
(void) results in a
Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file TargetData.cpp, line 397. Abort trap
error. Unfortunately I need a void-type pointer for `SecKeychainAddGenericPassword` calls. Any ideas about what I am doing wrong or how to work around this issue? Thanks, Carlo -- Carlo Zottmann Munich, Germany. -- http://carlo.zottmann.org TwerpScan -- Anti-Fool Twitter Contact Management Tool. http://twerpscan.com/
Anyone? Pretty please? I need to store user credentials, and a NSUserDefaults instance is hardly the right place, methinks. ;) Thanks, Carlo 2010/1/16 Carlo Zottmann <carlo@zottmann.org>:
Hi guys,
I just noticed that in 0.5b2 on Snopard,
Pointer.new_with_type("v")
(void) results in a
Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file TargetData.cpp, line 397. Abort trap
error. Unfortunately I need a void-type pointer for `SecKeychainAddGenericPassword` calls. Any ideas about what I am doing wrong or how to work around this issue?
Thanks, Carlo
-- Carlo Zottmann Munich, Germany. -- http://carlo.zottmann.org TwerpScan -- Anti-Fool Twitter Contact Management Tool. http://twerpscan.com/
Hi Carlo, Could you file a bug on trac regarding this problem? At least we should not abort() :) Regarding your initial question, I do not believe BridgeSupport and MacRuby are complete enough to let you access the C APIs of Security.framework. I would recommend to wrap your calls into an Objective-C class and call it from MacRuby. HTH, Laurent On Jan 20, 2010, at 1:20 AM, Carlo Zottmann wrote:
Anyone? Pretty please?
I need to store user credentials, and a NSUserDefaults instance is hardly the right place, methinks. ;)
Thanks, Carlo
2010/1/16 Carlo Zottmann <carlo@zottmann.org>:
Hi guys,
I just noticed that in 0.5b2 on Snopard,
Pointer.new_with_type("v")
(void) results in a
Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file TargetData.cpp, line 397. Abort trap
error. Unfortunately I need a void-type pointer for `SecKeychainAddGenericPassword` calls. Any ideas about what I am doing wrong or how to work around this issue?
Thanks, Carlo
-- Carlo Zottmann Munich, Germany. -- http://carlo.zottmann.org
TwerpScan -- Anti-Fool Twitter Contact Management Tool. http://twerpscan.com/ _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Carlo, In case it helps, you might be able to use one of the existing keychain wrappers / code rather than rolling your own (listing): http://www.cocoadev.com/index.pl?KeyChain There is also a nice keychain wrapper for iPhone, but I'm not sure if it works on OS X: http://github.com/ldandersen/scifihifi-iphone/tree/master/security Brian On Wed, Jan 20, 2010 at 1:20 AM, Carlo Zottmann <carlo@zottmann.org> wrote:
Anyone? Pretty please?
I need to store user credentials, and a NSUserDefaults instance is hardly the right place, methinks. ;)
Thanks, Carlo
2010/1/16 Carlo Zottmann <carlo@zottmann.org>:
Hi guys,
I just noticed that in 0.5b2 on Snopard,
Pointer.new_with_type("v")
(void) results in a
Assertion failed: (Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"), function getTypeSizeInBits, file TargetData.cpp, line 397. Abort trap
error. Unfortunately I need a void-type pointer for `SecKeychainAddGenericPassword` calls. Any ideas about what I am doing wrong or how to work around this issue?
Thanks, Carlo
-- Carlo Zottmann Munich, Germany. -- http://carlo.zottmann.org
TwerpScan -- Anti-Fool Twitter Contact Management Tool. http://twerpscan.com/ _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Thanks, for the pointers, guys! (Pun not really intended.) I'm sure I'll find something there. :) And Laurent, I'll file a ticket later today. Cheers, C. -- Carlo Zottmann Munich, Germany. -- http://carlo.zottmann.org TwerpScan -- Anti-Fool Twitter Contact Management Tool. http://twerpscan.com/
participants (3)
-
Brian Chapados
-
Carlo Zottmann
-
Laurent Sansonetti