Search results for

smb big sur

11,741 results found

Post

Replies

Boosts

Views

Activity

Reply to Problem with Calculator example toInt()
Maybe you are watching a tutorial intended for Swift 1.2 (or older) and using Swift 2.An old code something like:someString.toInt()should be rewritten as:Int(someString)So, one line of your code:firstnumber = Screen.text!.toInt()!should be:firstnumber = Int(Screen.text!)!You will see how you can rewrite another line.But, if you continue the old outdated tutorial, you will face at many other problems. Swift 2 was such a big change, that many Swift 1.x code got outdated.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
core data big issue
So i have been strugguling wit this for over a week now and i just cant seem to find the answer.I am working with core data and everything is fine until the point where i have to delete some entries. as soon as i fetch with a predicate and delete the object, it does delete it but the probleme is its deleting EVERYTHING in all other attributes of the same entity. can anyone help me with this ?AppDelegate * appDelegate = [[UIApplication sharedApplication] delegate]; NSManagedObjectContext * context = appDelegate.managedObjectContext; NSError *error = nil; NSNumber *n = [NSNumber numberWithInt:1]; NSFetchRequest *fetch = [[NSFetchRequest alloc] init]; fetch.entity = [NSEntityDescription entityForName:@LevelCoreData inManagedObjectContext:context]; fetch.predicate = [NSPredicate predicateWithFormat:@firstTime == %@, n]; NSArray *fetchedProducts=[context executeFetchRequest:fetch error:&error]; for (NSManagedObject *product in fetchedProducts) { [context deleteObject:product]; } [appDelegate saveContext];
0
0
221
Oct ’15
App employee
Hi guys,We are helping a client to develop an app to teach their employees. It's a simple educational app.It's a big company and it would be over 9 thousand employees.My question is if this app is suitable exclusively to Enterprise program or would it be possible to place it in app store?This question was raised because this item on apple`s review guidelines: [https://developer.apple.com/app-store/review/guidelines/]2.22 Apps that arbitrarily restrict which users may use the App, such as by location or carrier, may be rejected
1
0
289
Oct ’15
[Instruments] Allocation Types
Hi,can someone please explain to me what those 'Allocation Types' mean in Instruments:All Heap & Anonymous VMAll Heap AllocationsAll VM RegionsSome big heap allocations in my app do only show up when I select 'All VM Regions'. Why do those allocations not show up under All Heap...?Any clarification would be appreciated,Gero Gerber
2
0
3.0k
Oct ’15
iOS 9 Safari crashes while reading data geting smaller!
Hi everyone,i got a big problem with Safari on iOS 9: My web-app gets a file like a .csv with about 700kB.Since iOS 9 Safari crashes while reading it but not at the first row...here a little sample:http://langer.pro/BreakSafari/breakIOSSafari.htmlcan soneone tell me why that happend after the uppdate to iOS?my data variable only gets smaller.thanks to allMarcedit:and the problem is not in the data! There is also no Problem when the data are smaller.
0
0
299
Oct ’15
Reply to Loading an .Obj model file
I came into this problem when I wanted to make my own obj loader in opengl ES or GLKIT or NinvehGL, ....Though I succeeded in loading and rendering a small object with limitted vertices, I had difficulty with big Obj files.So I Came to this problem, and found out about model IO, and then scenekit 😝Anyhow, after a minute of trial and error, I converted the obj file to scn file, and loaded with SCNscene,The code abovelet scene = SCNScene(MDLAsset: asset)as you mentioned didn't work for me with Obj file. And then I tried with SCN file directly using the scenkit, and it workedThen surprisingly scenekit worked with obj file directly. (and it automatically loaded texture / mtl)My guess is maybe ModelIO is more for exporting (and importing) For file conversion. I hope at one point they support VRML files as well.So the code that helped me : (Be sure you Obj file is in the bundle in build phase of the target settings)let scene = SCNScene(named: youfile.obj)! let sceneView = self.view as! SCNView sceneView.s
Topic: Graphics & Games SubTopic: SceneKit Tags:
Oct ’15
How to check cancelled IAP?
We’ve added an IAP on our exclusive application for customers.It’s in the type of a non-renewing subscription.Basically, if the customers purchase our products, we will extend their subscription periods.The problem is that we can’t cancel the customers’ subscriptions when they cancel their purchases. Because we don’t know who did cancel it and who did not.Therefore, if someone purposely keeps to purchase and to cancel using different accounts, it will cause a big loss for our company.In order to avoid this problem, I would like to know a way to check the refund records.
1
0
715
Oct ’15
Reply to menubar set font width
Hello,thank you very much for your answer.My problem in this point is, that I'm using swift and never learnd something about objective-c (big mistake).import Cocoa @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate { @IBOutlet weak var window: NSWindow! @IBOutlet weak var dorTime: NSMenu! var timer = NSTimer() let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1) func applicationDidFinishLaunching(aNotification: NSNotification) { let icon = NSImage(named: dorunicorn)! icon.template = true statusItem.image = icon statusItem.menu = dorTime statusItem.length = NSVariableStatusItemLength timer = NSTimer.scheduledTimerWithTimeInterval(0.1, target: self, selector: (getDorTime), userInfo: nil, repeats: true) } @IBAction func menuClicked(sender: NSMenuItem) { let pasteBoard = NSPasteboard.generalPasteboard() pasteBoard.clearContents() pasteBoard.writeObjects(NSArray(object: statusItem.title!) as! [NSPasteboardWriting]) } @IBAction func quitClicked(sender: NSMenuItem) { ex
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’15
about categories and overridden methods...
Hi,some of my classes are gowing very big. I would like to use categories for code management. I would also like to override some methods like viewDidLoad inside the category and continue its implementation from there.Now in inheritance we can call [super viewDidLoad] to see to it that the actualy implementation of viewDidLoad is always called before the trailing part of the method is executed in out subclass.How can we ensure this in a category?
Topic: UI Frameworks SubTopic: AppKit Tags:
7
0
1.5k
Oct ’15