Reuse selectors.

This commit is contained in:
Jarl Gullberg 2017-08-04 18:40:16 +02:00
parent c02e959f7a
commit b0e7465f6c
No known key found for this signature in database
GPG key ID: 750FF6F6BDA72D23

View file

@ -16,8 +16,8 @@ namespace OpenTK.Platform.MacOS
/// </summary> /// </summary>
public NSAutoreleasePool() public NSAutoreleasePool()
{ {
_autoreleasePool = Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Get("alloc")); _autoreleasePool = Cocoa.SendIntPtr(Class.NSAutoreleasePool, Selector.Alloc);
_autoreleasePool = Cocoa.SendIntPtr(_autoreleasePool, Selector.Get("init")); _autoreleasePool = Cocoa.SendIntPtr(_autoreleasePool, Selector.Init);
} }
/// <summary> /// <summary>