سؤال

أود إرسال البيانات الخام (الفراغ*) باستخدام sbapplication sendVent

للأسف لم أجد أي وثائق حول هذا الموضوع.

هل لديك أي فكرة لتحقيق ذلك؟

شكرا مقدما لمساعدة يورو ،

يعتبر،

هل كانت مفيدة؟

المحلول

sendEvent:id:parameters: هي في الواقع رسالة تستجيب جميع sbobjects ، وليس فقط sbapplications. sbobject.h يقول:

// Send an Apple event.  The direct parameter is the specifier of the receiver if it
// is non-null.  Other parameters are given using "parameters:" as a list of pairs
// of the parameter four-byte code followed by an Objective-C object; use a parameter
// code of 0 to mark the end of the list.

لذلك ، جرب ملاكمة البيانات لأعلى في كائن NSDATA ، وتمرير ذلك.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top