Opened 12 years ago

Last modified 11 years ago

#174 new enhancement

need some way to have call-next-method refer to super

Reported by: rme Owned by: gb
Priority: minor Milestone:
Component: Objective-C Bridge Version:
Keywords: Cc:

Description

There's no way to use CALL-NEXT-METHOD within an objc:defmethod form to call a method on super, and SEND-SUPER isn't available.

Something better than:

  (let ((class (#/class self)))
    (rlet ((s :objc_super #+apple-objc :receiver self
	      #+apple-objc-2.0 :super_class #-apple-objc-2.0 :class
	      #+apple-objc-2.0 (#_class_getSuperclass class)
	      #-apple-objc-2.0 (pref class :objc_class.super_class)))
      (objc-message-send-super s "initWithFrame:" :<NSR>ect frame
			       :id))))

is needed.

Maybe just a %send-super function for now, and something better later.

Change History (1)

comment:1 Changed 11 years ago by rme

  • Component changed from IDE to Objective-C Bridge
Note: See TracTickets for help on using tickets.