Skype API
As it appears that the entire Skype API will disappear in December, does anyone have any ideas on how to detect an incoming Skype call? John Developer of T_Accounting ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSSearchField problem
Hello, Michael. Below is a snipped of code which I use to populate the "Recent Searches" section of a similar NSSearchField. It works. I modified Apple's example quite a bit. As you can see, in my code, the menu item that is tagged with NSSearchFieldRecentsMenuItemTag has nil action and no target. That tag makes it a "magic" item which tells Cocoa to put the recent items there. So I think the answer to your question of why the selector of that item never gets invoked is that this behavior is expected. There are actually five (5) such magic items with magic tags, which I've commented with // (*). If I remember correctly, the way the "search" happens for a recent search is the same as the way the search happens for a typed-in-with-keyboard search, which is that the search field sends its action. I also had to subclass NSSearchField to get everything working. But maybe this will get you started. // *** Recent Searches Section // Separator [searchMenu insertItem:[NSMenuItem separatorItem] atIndex:index++]; // "Recent Searches" Title Item title = [[BkmxBasis sharedBasis] labelRecentSearches] ; item = [[NSMenuItem alloc] initWithTitle:title action:nil keyEquivalent:@""]; [item setTag:NSSearchFieldRecentsTitleMenuItemTag]; // (*) [searchMenu insertItem:item atIndex:index++]; [item release]; // "No Recent Searches" title = [[BkmxBasis sharedBasis] labelNoRecentSearches] ; item = [[NSMenuItem alloc] initWithTitle:title action:nil keyEquivalent:@""]; [item setTag:NSSearchFieldNoRecentsMenuItemTag]; // (*) [searchMenu insertItem:item atIndex:index++]; [item release]; // Placeholder for the actual Recent Searches item = [[NSMenuItem alloc] initWithTitle:title action:nil keyEquivalent:@""]; [item setTag:NSSearchFieldRecentsMenuItemTag]; // (*) [searchMenu insertItem:item atIndex:index++]; [item release]; // Separator item = (NSMenuItem*)[NSMenuItem separatorItem]; [item setTag:NSSearchFieldRecentsTitleMenuItemTag]; // (*) [searchMenu insertItem:item atIndex:index++]; // Clear Recent Searches title = [[BkmxBasis sharedBasis] labelClearRecentSearches] ; item = [[NSMenuItem alloc] initWithTitle:title action:nil keyEquivalent:@""]; [item setTag:NSSearchFieldClearRecentsMenuItemTag]; // (*) [searchMenu insertItem:item atIndex:index++]; [item release]; ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSSearchField problem
Hi all I am struggling to solve this problem. I wish to implement a searchField similar to the "Find" of Xcode's IDE editor, where, for example, "Recent Results" places the item chose into the SearchField and performs the search with the chosen string. The current setup( in OSx) is a simple TableView, an Array controller which populates the tableView with Managed Object instances, and works as expected. ( ie Add, Remove are implemented through the controller). I have implemented the direct search by creating a predicate with the inputString of the searchField and applying that to the arrayController, which works as expected. (done in the delegate ControlTextDidChange method); The code I am using to try to implement the issue mentioned above is as follows. (unapologetically "modified" from Apple's searchField example) -(void)setUpSearchField{ if ([self.searchField respondsToSelector:@selector(setRecentSearches:)]) { NSMenu * searchMenu = [[NSMenu alloc]initWithTitle:@"Search Menu"]; [searchMenu setAutoenablesItems:YES]; NSMenuItem * recentSearchesItem = [[NSMenuItem alloc]initWithTitle:@"Recent Names" action:@selector(searchWithRecentNames:) keyEquivalent:@""]; [recentSearchesItem setTarget:self]; [recentSearchesItem setTag:NSSearchFieldRecentsMenuItemTag]; [searchMenu insertItem:recentSearchesItem atIndex:0]; id searchCell = [self.searchField cell]; [searchCell setSearchMenuTemplate:searchMenu]; } } The selector( ie (searchWithRecentNames:) is never called. I do note that if the tag "NSSearchFieldRecentsMenuItemTag" is omitted, it is called, but that is not following the example as suggested by Apple in their SearchField example. I have tried the following delegate method. control:textDidChangewhich, I learnt is only called with a user interaction. I realize that the other delegate methods tried are all under the heading of "TextField" or "Control" delegate methods, but with equal luck. Clearly, what I **think** I need is a delegate method that is triggered when the "recent searches" string is selected and clicked, but that is eluding me. A pointer in the right direction would be greatly appreciated. Thanks in advance. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: collection of applications
What I mean is that technically you can do it without jailbreak, but that would involve black magic (that is, abuse the app sandbox to create one single rwx mapping which is required for JIT hence allowed under limitation on iOS) and run the risk of being rejected by Apple. I know some security expert released a method of loading signed dynamic library from outside the application bundle (in his case, downloaded from some server) on vanilla iOS (vanilla in contrast to a jailbroken system) and from my personal experience a dynamic-linked OpenSSL worked on my test environment. This is taking the thread off topic so I think this is it. On Oct 12, 2013, at 11:22, Jens Alfke wrote: > > On Oct 11, 2013, at 7:57 PM, Maxthon Chan wrote: > >> This is not new - it existed since iPhone OS 1.0. However by saying “can >> load dynamic libraries” does not mean you can actually use it in production >> code. Apple does not allow any dynamic libraries exist in App Store packages >> (“Nobody but Apple can put dynamic libraries onto iOS device") so the >> dynamic library support is pretty much restricted to jailbreak community. > > Oh. I wouldn’t count this as something that iOS can do, then, not in any > realistic sense. > And discussion of jailbroken features is not allowed on this list anyway. > > —Jens ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com