Posts

Post not yet marked as solved
6 Replies
1.2k Views
Hi.I am implementing the Open Recent Menu in a not NSDocument app.After getting the url of the file throught NSOpenPanel whith the full path to the file, the app proceds to open the file and peocces it, in succes, the app cals:[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:self.URLFile];this adds the file to Open Recent Menu, at this point all ok.When I try to open the file throught Open Recent Menu, the app cals:- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenamereturning YES if the file is sucesfully open, at this point all ok Works fine.... BUT only works if the app is running into XCode, if archive the app export an launch in Finder, not works. Simple this last method is neveer called.A thinkg at I ma missing somethig... any help to make this works outside Xcode will be apreciated.Manuel.Edit:After loogin the app inside XCode as in Terminal App, the problem is when I try to convert from NSString to NSURL. this is the code:- (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename { // paths in NSDocumentController recentDocumentURLs array NSLog(@"Paths in recentDocumentURLs"); for (NSURL *url in [NSDocumentController sharedDocumentController].recentDocumentURLs) { NSLog(@"Path: %@",[url absoluteString]); } NSLog(@"Path filename: %@", filename); NSString *temp = [filename stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSLog(@"Path temp: %@", temp); self.archivoURL = [NSURL fileURLWithPath:filename isDirectory:NO]; NSLog(@"Path self.archivoURL: %@", self.archivoURL); if (self.archivoURL == nil) return NO; // open file... return YES; } // Fin de application:OpenFilethis code inside XCode logs: Paths in recentDocumentURLs2016-12-21 00:08:23.118577 AppMake[9424:253018] Path: file:///Users/Manuel/Documents/Modelos%203D/X_single_Ring_round_40.stl 2016-12-21 00:08:23.118612 AppMake[9424:253018] Path: file:///Users/Manuel/Documents/Modelos%203D/pirinola.stl 2016-12-21 00:08:23.118625 AppMake[9424:253018] Path: file:///Users/Manuel/Documents/Modelos%203D/cubo%203.stl 2016-12-21 00:08:23.118636 AppMake[9424:253018] Path filename: /Users/Manuel/Documents/Modelos 3D/cubo 3.stl2016-12-21 00:08:23.118665 AppMake[9424:253018] Path temp: /Users/Manuel/Documents/Modelos%203D/cubo%203.stl2016-12-21 00:08:23.118706 AppMake[9424:253018] Path self.archivoURL: file:///Users/Manuel/Documents/Modelos%203D/cubo%203.stlthis code outside XCode and launch app throught Terminal.app for see logs, logs:2016-12-21 00:08:05.564 AppMake[9410:252746] Paths in recentDocumentURLs2016-12-21 00:08:05.566 AppMake[9410:252746] Path: file:///Users/Manuel/Documents/Modelos%203D/X_single_Ring_round_40.stl2016-12-21 00:08:05.566 AppMake[9410:252746] Path: file:///Users/Manuel/Documents/Modelos%203D/pirinola.stl2016-12-21 00:08:05.566 AppMake[9410:252746] Path: file:///Users/Manuel/Documents/Modelos%203D/cubo%203.stl2016-12-21 00:08:05.566 AppMake[9410:252746] Path filename: /Users/Manuel/Documents/Modelos 3D/cubo 3.stl2016-12-21 00:08:05.566 AppMake[9410:252746] Path temp: /Users/Manuel/Documents/Modelos%203D/cubo%203.stl2016-12-21 00:08:05.566 AppMake[9410:252746] Path self.archivoURL: (null)Any Idea??Thanks Manuel
Posted Last updated
.
Post marked as solved
2 Replies
805 Views
I have the next func to draw a string in a view using Core Graphics with swift 5.3 in Catalina. private func drawString(_ string : String, at point : CGPoint, withFont font : NSFont, andColor color : NSColor ) {     let attributes : [NSAttributedString.Key : Any] = [NSAttributedString.Key.font : font, NSAttributedString.Key.foregroundColor : color.cgColor]     let attStr = NSAttributedString(string:string, attributes:attributes) 		attStr.draw(at:point) } When the app draw the string (line 8) the app crash, and in the Xcode.debug area I read: 2020-10-21 10:17:34.535356-0500 MyApp[15037:1374731] -[__NSCFType set]: unrecognized selector sent to instance 0x60000214ef80 If remove the foregroundColor att, the app runs, but the string is drawing in black. Some Suggestion. Thanks Manuel C.
Posted Last updated
.
Post not yet marked as solved
5 Replies
405 Views
I am trying to create a CGColor in Swift 5.3 in macOS Catalina 10.15.7, using: let colour : CGColor = CGColor.init(red: r, green: g, blue: b, alpha: 1.0) where r,g,b, are between 0.0 and 1.0, but the returned object is a NSObject. Same result as using let colour : CGColor = NSColor.init(red: r, green: g, blue: b, alpha: 1.0).cgColor The NSColor is created correctly but at retrieve the CGColor, the result is NSObject. Some suggestions. Thanks. Manuel
Posted Last updated
.
Post not yet marked as solved
0 Replies
187 Views
Hi.I need create a NSImaage representation from a custom SCNGeometry to be able use as icon in my app. I be awared that I can take a snapShot fron a SCeneView usin the method - (NSImage *)snapshot, but I need only the image of a geometry with no other element from a scene. Some gide.Thans in advance.
Posted Last updated
.
Post not yet marked as solved
1 Replies
800 Views
The financial report for April has not arrived yet, it is delayed by a week than normal. I ask, Is it normal or just my nerves? I have 280 USD of proceds.Thanks Manuel.
Posted Last updated
.
Post not yet marked as solved
0 Replies
543 Views
In Xcode's 10 Orgqanizer windows appears two crasches, but none are symbolicated. When I submit my app to App Store, symbols was created and uploaded. But the Download dsyms button has disapered from the organizer and in the appstoreconnect site I can not find how donload the dsyms files.Any help for symbolicate this archives will be apreciated.Thanks. Manuel C.
Posted Last updated
.
Post marked as solved
1 Replies
1.6k Views
Hi.When building or archiving the binary of the program in Xcode 9.4.1, only the "xib" files of the "base" folder are compiled and/or copied to the final product, the same "xib" files of the location folders are not compiled. in the File ispector tab under Localization and Target Membership all Localizations are selected.How can I correct this so that all the "xib" files are included in the final product?Manuel C.
Posted Last updated
.
Post not yet marked as solved
3 Replies
1.5k Views
Hi.In Feb, 1. I submit a mantinace version of my Mac App, and after 14 days it is keep in "Waiting for review" state. It's the first time that so much time passes and the review team does not review it. As usual, I only receive an automated response from Apple, saying that the status is normal and is in review queue.Some of you, will you know what's going on with the review team? or, maybe Apple have staff crisis?Manuel
Posted Last updated
.
Post marked as solved
9 Replies
2.6k Views
My application handles multiple connections through the USB ports as serial devices that use termios, the application needs to send and receive a large amount of data for each open connection, but in very rare cases the process that handles the data received through a specific USB port crashes, collapsing the application and affecting the other open connections. To minimize the damage, I intend to use NSXPCConnection instances. My question to this forum is: How many similar instances of NSXPCConnection can be opened for the same application?
Posted Last updated
.
Post not yet marked as solved
0 Replies
415 Views
I wotk whit .".stl" files and I using Open GL for render my scene with the +Z azis Up. But I want to migrate from OpenGL to SceneKit, and I need the +Z up. Is there a way to change the +Z axis to UP vector.?Thanks by advance.
Posted Last updated
.
Post marked as solved
1 Replies
5.8k Views
I am a new developer that resides in Mexico and I am confused about the payment policies from Apple to developers.According to the Apple guides, you must exceed a threshold of $150.00 USD after Apple's commission to make the payment, also that all my bank information must be complete and have accepted all amendments to the contract with Apple. Everything is done and there is no notice that something is missing, but even so, it appears in the payment report "carry-over of balances". I ask this community; How many days have to pass for Apple to make the payment once it exceeds the threshold of $ 150.00 USD?I've sent an email to the Apple support team, but their answer are highly ambiguous. Either they do not read, they do not understand, they do not want to respond or they do it in a reluctantly way.I really feel bewildered and underexposed ... 😟Thanks for your support.
Posted Last updated
.
Post not yet marked as solved
0 Replies
985 Views
Hi. A have a Slicer App in Mac Store and, I want to change the behavior that is used to start a 3D printing, instead of using a special control to open the connection with the printer and another to start this, I want to use the "Command P" to open a print window, make final adjustments and a "Print" button to print. This would be possible in the application and not be rejected by the itunesConnect review team?.Grettings.Manuel
Posted Last updated
.
Post marked as solved
10 Replies
1.2k Views
I received today a crash log of my app, but it does not contain any explanation or information, except as stated in the matter, but does not say anything. Any ideas?I not runing in any beta or Xcode or Mac Os.Thanks by advance.
Posted Last updated
.