¡@

Home 

2014/10/15 ¤U¤È 10:15:58

iphone Programming Glossary: windowdidmove

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

see below. For example suppose you have an NSWindow. If you'd like to implement its delegate's windowDidMove method you could create a class like this @implementation MyClass void windowDidMove NSNotification.. delegate's windowDidMove method you could create a class like this @implementation MyClass void windowDidMove NSNotification notification ... @end Then you could create an instance of MyClass and assign it as the.. On the NSWindow side it probably has code similar to this to see if the delegate responds to the windowDidMove message using respondsToSelector and send it if appropriate. if self delegate respondsToSelector @selector..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

you must declare your delegate to implement that protocol see below. For example suppose you have an NSWindow. If you'd like to implement its delegate's windowDidMove method you could create a class like this @implementation MyClass void windowDidMove NSNotification notification ... @end Then you could create an instance of MyClass.. suppose you have an NSWindow. If you'd like to implement its delegate's windowDidMove method you could create a class like this @implementation MyClass void windowDidMove NSNotification notification ... @end Then you could create an instance of MyClass and assign it as the window's delegate MyClass myDelegate MyClass alloc init window.. myDelegate MyClass alloc init window setDelegate myDelegate On the NSWindow side it probably has code similar to this to see if the delegate responds to the windowDidMove message using respondsToSelector and send it if appropriate. if self delegate respondsToSelector @selector windowDidMove self delegate windowDidMove notification..

How do I create delegates in Objective-C?

http://stackoverflow.com/questions/626898/how-do-i-create-delegates-in-objective-c

implement that protocol see below. For example suppose you have an NSWindow. If you'd like to implement its delegate's windowDidMove method you could create a class like this @implementation MyClass void windowDidMove NSNotification notification ... @end.. like to implement its delegate's windowDidMove method you could create a class like this @implementation MyClass void windowDidMove NSNotification notification ... @end Then you could create an instance of MyClass and assign it as the window's delegate.. myDelegate On the NSWindow side it probably has code similar to this to see if the delegate responds to the windowDidMove message using respondsToSelector and send it if appropriate. if self delegate respondsToSelector @selector windowDidMove..