Search results for

smb big sur

11,740 results found

Post

Replies

Boosts

Views

Activity

Reply to Calling C++ functions using Objective-C++ in a Swift program
Hi,The error makes sense due to the fact that you are trying to call a _class_ method when the declaration of that method is an instance method.Try changing- (double) TestCPP: (double) A : (double) B : (double) C :(double) D : (double) E : (double) F : (NSString*) Caller : (NSString*) Sector : (NSString*) OutPut;to+ (double) TestCPP: (double) A : (double) B : (double) C :(double) D : (double) E : (double) F : (NSString*) Caller : (NSString*) Sector : (NSString*) OutPut;My other suggestion is to have an object that will represent each field within its interface. In this case you'll avoid such a big method signature, it will especially reduce complexity for the reader.Another way of doing this is, of course, create an instance of the class and call that method, like this:let test = TestObjC().TestCPP(200.00,210.00,0.25,0.15,0.0025,0.02,alpha,bravo,charlie)First part (TestObjc()) will create an intsance (call initializer & allocate memory), and the second part is simply calling an instance method.
Topic: Programming Languages SubTopic: General Tags:
Sep ’15
Adding Kerberos Service Principals in OSX Server for 10.10?
Does anybody know how to add a service principal to Kerberos on Server for OSX 10.10 and have it work? We're trying to use Kerberos to authenticate users of our service where the user accounts are stored in OD on Server for OSX 10.10.On the OD server machine we create the service principal using the usual Kerberos commands we seem to be able to create the principal. However, when an authenticated user requests a ticket for the service, it is reported as expired. My guess is that there is some additional step that is required to bless a service ticket in an OD KDC. Or not.In full disclosure and to explain the examples, we're trying to use Kerberos authentication as a means of integrating a Samba-based CIFS bridge with OD. Our product, MediaGrid, is a scalable shared storage system which includes an OSX (and Windows & Linux) network filesystem driver and which has supported OD, AD, and OpenLdap. However we've removed Samba and Linux from the picture completely and are so far unable to get
3
0
717
Sep ’15
Reply to Make method less repetative
Again, I may be reading your code incorrect but something like:private func generateLoserLocationFunction(numberOfPlayers: Int) -> (column: Int, row: Int) -> (column: Int, row: Int) {return { row, column inlet newCol = -2 * columnswitch numberOfPlayers {case 8:switch column {case 0:return (newCol, row / 2)case 1:return (newCol, row ^ 1)}case 16:switch column {case 0:return (newCol, row / 2)case 1:return (newCol, 3 - row)case 2:return (newCol, row ^ 1)}case 32:switch column {case 0:return (newCol, row / 2)case 1:return (newCol, (row + 4) % 8)case 2:return (newCol, row)case 3:return (newCol, row ^ 1)}default:return (newCol,0)}}It's not a big change, 35 lines instead of 50 but if I'm reading it right, it should do the same thing your existing versiondoes.
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to Verify IAP receipt
omg, i made such a stupid mistake. The user chooses the product in an UICollectionView. In didSelectItemAtIndexPath I wrote let product = self.products.objectAtIndex(indexPath.section) as! SKProductinstead oflet product = self.products.objectAtIndex(indexPath.row) as! SKProductas there is only 1 section I always purchased the first product. I logged the receipt information and as the purchase time is always 2 hours before my local time I thought I would get only the purchase information of the first product, 2 hours ago. Now everything works. Sometimes a small mistake makes very big trouble.
Topic: App & System Services SubTopic: StoreKit Tags:
Sep ’15
Erratic dead code elimination?
I noticed (in optimized builds) that dead code stripping didn't seem to be performed for sqrt, while it did when replacing sqrt with eg exp.What's the reason for this?Here's a little program to demonstrate it:import Cocoa // (For CACurrentMediaTime) struct DeadCodeEliminationTester { var usedValue: UInt64 = 0 // Will be printed at the end. Non-ignored results are xored into this value. // Function that returns the time (in seconds) it takes to make a // hundred million calls to fn, using or ignoring the result of the calls. mutating func timeLotsOfCallsTo(fn: (Double) -> Double, useResults: Bool) -> Double { let startTime = CACurrentMediaTime() var temporaryUsedValue: UInt64 = 0 for i in 0 ..< 100_000_000 { let doubleResult = fn(Double(i)) temporaryUsedValue ^= unsafeBitCast(doubleResult, UInt64.self) } let stopTime = CACurrentMediaTime() if useResults { usedValue ^= temporaryUsedValue } return stopTime - startTime } mutating func testFunction(fn: (Double) -> Double, label: String) { let timeUsing
2
0
848
Sep ’15
Reply to No more stringByAppendingPathComponent in Xcode 7 beta 5?
It's generally understood that NSURL-based APIs are now preferred to path-based APIs. In the past couple of years (before Swift) Apple has gradually rounded out the repertoire for NSURL so that you don't ever have to use paths. Paths aren't deprecated, or even obsolescent. They're just — less preferred. It's not a big deal though. If you definitely prefer to continue with paths, you can.When you see a path-based API method that has no NSURL-based equivalent, you can take that as a pretty strong indication that the method shouldn't really be used at all, for some reason that's got nothing to do with the path vs. URL debate.One group of such methods are ones that don't return a NSError result when they fail. These are all ancient methods from the times before API design was made consistent. There's no URL-based equivalent because you should always use the new methods with the error result.Another group of such methods are ones that have an inherent vulnerability to race conditions, such as fileExistsAt
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to No more stringByAppendingPathComponent in Xcode 7 beta 5?
That's not true at all. There are plenty of APIs in the Cocoa framework that take NSURLs and only work with local files; for example, all of the -writeToURL:etc:etc:etc: methods found on NSString, NSData, NSArray, NSDictionary, etc. only work with local files. Also, NSURL itself has plenty of methods that only work on file-based URLs—the aforementioned checkResourceIsReachable:error: being one of them, the many resources types you can get with getResourceValue:forKey:error: that only apply to local files being another.Apple's been steadily replacing all their path-based methods with NSURL-based ones since at least Snow Leopard; that UIImage example you gave is the first example I've seen in years that didn't have an NSURL-based equivalent (which, since it's iOS and you're usually not allowed out of your app's sandbox anyway, is probably just because you're not expected to use that method much anyway). NSURLs are what you're supposed to use to refer to files—local and remote—but don't take my word from it. Her
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to What should I do with "Warning: sync SCNetworkReachability (by-name) query on main thread"
This warning is a sign of a very real problem. Under the right (well, wrong :-) circumstances it’s quite possible for your app to be killed by the watchdog, as described in QA1693 Synchronous Networking On The Main Thread.Let’s start with the big picture issue: why are you doing reachability queries at all? This is not just me being nosy (-: The vast majority of apps that I see using reachability are using it for the wrong reasons.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Sep ’15
Afaria MDM Enterprise APP after upgrade iOS9 wont work
I am working in a big Company in Germany,we used Afaria from SAP with an Sybase Custom Enterprise App to Rollout our Deivces.When this app ist installed on a Device with 8,x the App is working correctly.But when a Devise ist upgraded to iOS9 Online, the App would not be Started.After Upgrading there is no Entry under Profile Settings Enterprise-App with our Enterprise Rollout App.This app must be reinstalled to get this Entry to work correctly.But our Problem is we could not do this with 2000 Devices.Our InHouse Support is not be able to do this with 2000 Devices tio reinstall the Sybase Afaria Enterprise App.What can we do.Is it possible to push the Seetings Enterprise-APP Payload to this Devices with ios9.x.Need Help.Best RegardsWerner
0
0
422
Sep ’15