Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solve Cocoa AppDelegate problem #20

Open
Manderby opened this issue Nov 4, 2020 · 1 comment
Open

Solve Cocoa AppDelegate problem #20

Manderby opened this issue Nov 4, 2020 · 1 comment
Labels
improvement Make existing functionality better

Comments

@Manderby
Copy link
Owner

Manderby commented Nov 4, 2020

After the postStartup, the NSApplication sets its application delegate in naStartApplication to the default. Desired would be to the delegate class of NALib to capture more notifications. This interfered with some other mechanisms though (don't quite remember now).

Please have a look at the following comments removed from naStartApplication to get back in the mood:

  //[NSApp setDelegate:(NA_COCOA_BRIDGE id)naGetUIElementNativePtr(app)];
  
//  SEL selector = @selector(doSomethingWithObject:afterDelay:);
//  IMP newImp = (IMP)swizzledDoSometingWithObjectAfterDelay;
//  Method method = class_getClassMethod([MyClass class], selector);
//  const char * encoding = method_getTypeEncoding(method);
//  class_replaceMethod([MyClass class], selector, newIMP, encoding);

@Manderby
Copy link
Owner Author

Note that there has been some development in starting up an application. It has become much more stable and maybe now it is possible to use the delegates properly. It has been an unresolved issue though and it is still not clear what is needed when.

@Manderby Manderby added the improvement Make existing functionality better label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Make existing functionality better
Projects
None yet
Development

No branches or pull requests

1 participant