logo
down
shadow

OBJECTIVE-C QUESTIONS

App crashes while converting to Objective-C ARC
App crashes while converting to Objective-C ARC
fixed the issue. Will look into that further Your original code is not correct. You're telling the compiler that it's safe to use a ABMultiValueRef as an NSString -- and it isn't.I've not tried this but, something like this might work better:
TAG : objective-c
Date : December 01 2020, 04:55 PM , By : BABE
When updating the TestFlight SDK do you need to delete the old version?
When updating the TestFlight SDK do you need to delete the old version?
this will help If your are adding the TestFlight source to your project it will build the library, so just overwriting the source files is enough, as is deleting and re-adding them. As long as you do it cleanly and don't leave old files hanging aroun
TAG : objective-c
Date : December 01 2020, 04:55 PM , By : tdrosiadis
How to read file by sector,and not rely on the OS cache in Cocoa
How to read file by sector,and not rely on the OS cache in Cocoa
hop of those help? The flag NSDataReadingUncached (or its deprecated synonym, NSUncachedRead) is a hint to the OS that the file should not be added to the cache. They can be used to prevent large, unimportant files from being added to the cache and e
TAG : objective-c
Date : November 29 2020, 01:01 AM , By : hmenn
Convert from NStimeInterval to CMTime accurately
Convert from NStimeInterval to CMTime accurately
it helps some times I am using two players one is MPMoviePlayerController and the other is AVPlayer. henever MPMoviePlayerController is seeked, it sets the time to AVPlayer. Everything is working fine. While converting MPMoviePlayerController current
TAG : objective-c
Date : November 27 2020, 01:01 AM , By : reinout baeckelmans
How can I continue my count from the correct spot once I load the saved count?
How can I continue my count from the correct spot once I load the saved count?
I hope this helps you . First of all, start variable names with a lower case letter.Is Count a UILabel? You are setting the text, but you are never updating the actual Number. So instead of saving an NSString, save an NSNumber instead:
TAG : objective-c
Date : November 26 2020, 01:01 AM , By : Loki Lord
instance method 'connect:' not found (return type defaults to 'id'
instance method 'connect:' not found (return type defaults to 'id'
To fix the issue you can do I am having a warning from Xcode instance method 'connect:' not found (return type defaults to 'id'). , The solution is to use:
TAG : objective-c
Date : November 25 2020, 07:06 PM , By : Mạnh Hoàng Nguyên
Does an object initialize automatically if it is the synthesized property of another object?
Does an object initialize automatically if it is the synthesized property of another object?
it should still fix some issue When you have one object as a property of another object in Objective-C, does it automatically initialize when you use @synthesize? , does it automatically initialize when you use @synthesize?
TAG : objective-c
Date : November 25 2020, 07:06 PM , By : Rolf
What reasons are there to pass an argument to an initializer in objective C?
What reasons are there to pass an argument to an initializer in objective C?
wish helps you When a class operates on (and thus requires) an external object. An example of this is NSScanner, which iterates through substrings in an NSString. When a class can be instantiated using already known information. An example of this is
TAG : objective-c
Date : November 24 2020, 03:41 PM , By : Thanh Nguyễn Văn
NSLogging UILabel's text outputs null
NSLogging UILabel's text outputs null
this will help mainLab must be nil. So your outlet probably isn't connected to your XIB.
TAG : objective-c
Date : November 24 2020, 05:44 AM , By : Abuelfateh
undefined reference to '__objc_class_name_Fraction'
undefined reference to '__objc_class_name_Fraction'
hop of those help? This error is telling you that Fraction.m was not compiled or linked, and therefore when you build the project, the Fraction class was not found.You'll get this error if you neglect to add Fraction.m to your GNUmakefile.
TAG : objective-c
Date : November 24 2020, 05:44 AM , By : Kev111
Move UIView above UITableView when user Scrolls Down
Move UIView above UITableView when user Scrolls Down
Hope that helps The view with 3 buttons needs to be taken as the header view of table. Take the outlet of that view.
TAG : objective-c
Date : November 23 2020, 01:01 AM , By : user2957257
adding object to nsmutablearray with custom delegate function giving error
adding object to nsmutablearray with custom delegate function giving error
wish helps you If [See valueForKey:@"class_name"] contains array then that is your error cause:
TAG : objective-c
Date : November 22 2020, 03:03 PM , By : 3legs
Cocoa editing NSBezierPath
Cocoa editing NSBezierPath
To fix this issue Every time you call drawRect: you are creating a new path and drawing it. Then, on the button press you modify the path.So you have 2 problems:
TAG : objective-c
Date : November 22 2020, 03:03 PM , By : user2956960
Perform a action on specific time using Parse
Perform a action on specific time using Parse
I hope this helps you . Qaiser, As far as I am aware, there is no way to use a timer in the CloudCode on Parse. They have a 3 second timeout on cloud operations. I am assuming from your question statement that the time expires on a client device and
TAG : objective-c
Date : November 22 2020, 10:54 AM , By : user2956326
Objective-C: How to convert json value to BOOL?
Objective-C: How to convert json value to BOOL?
I think the issue was by ths following , I have a property on my Model as , Try changing your model to declare a bool rather than a bool pointer:
TAG : objective-c
Date : November 22 2020, 10:54 AM , By : user2956318
How to make an int counter for the days
How to make an int counter for the days
will help you You can follow the below mentioned steps to find the counter you are looking for Create an NSDate Object currentDate Get the current time from [currentDate timeIntervalSince1970], this will return you the current time in UTC since 1970
TAG : objective-c
Date : November 22 2020, 10:54 AM , By : user2956278
Assigning Label Value with Selected Table View Cell
Assigning Label Value with Selected Table View Cell
around this issue The issue is because you are using didDeselectRowAtIndexPath, change it to didSelectRowAtIndexPath
TAG : objective-c
Date : November 22 2020, 10:48 AM , By : SteveP
SpriteKit - Preloader using GCD
SpriteKit - Preloader using GCD
I hope this helps . I don't do any progress bars since my levels take about a second to load. I have a seamless transition between levels. Before I was doing things this way my game would freeze for a moment in a transition because it had to load all
TAG : objective-c
Date : November 22 2020, 10:48 AM , By : user269580
Can dependency injection like Typhoon replace multiple singletons?
Can dependency injection like Typhoon replace multiple singletons?
wish of those help Typhoon creator here. Yes, one of the uses of dependency injection it to provide the benefits of singletons without the drawbacks. But you don't necessarily need a library to apply the dependency injection pattern and replace your
TAG : objective-c
Date : November 22 2020, 10:38 AM , By : Mark Fischer
Objective C - How to determine if a folder is a package?
Objective C - How to determine if a folder is a package?
wish help you to fix your issue There are multiple ways to do this, the "modern" way is to use NSURL's getResourceValue:forKey:error: method (or one of its siblings). The key for determining whether the NSURL instance references a package is NSURLIsP
TAG : objective-c
Date : November 22 2020, 10:38 AM , By : milad Azadeh
How can one draw a background in the elastic portion of an NSScrollView?
How can one draw a background in the elastic portion of an NSScrollView?
Any of those help Well if at first you don't succeed (and nobody has answered your question on SO yet)...What worked is to add a subview to the NSClipView (not the NSScrollView) constraining it to be adjacent to the documentView where the elasticity
TAG : objective-c
Date : November 22 2020, 10:38 AM , By : Janet Stubblefield
A solution for my issue with sending some info from an array to Parse
A solution for my issue with sending some info from an array to Parse
help you fix your problem If you need to support more than one instance of each type of product, then you should probably restructure your charge params dictionary to support arrays. It's common in commerce systems to have the concept of a "line item
TAG : objective-c
Date : November 22 2020, 10:38 AM , By : Atr
Swift Extension fails adding overloaded methods to Objective-C class
Swift Extension fails adding overloaded methods to Objective-C class
Any of those help ObjC doesn't support method overloading. When you extend an ObjC class, the interface to your code is the ObjC runtime—even if you're calling your Swift code in that class from other Swift code—so your class' interface can't use fea
TAG : objective-c
Date : November 22 2020, 10:33 AM , By : WilsonWei
Determine if key is incorrect with CCCrypt kCCOptionPKCS7Padding-Objective C
Determine if key is incorrect with CCCrypt kCCOptionPKCS7Padding-Objective C
around this issue kCCDecodeError does not provide information if the correct key is used, just if there are gross errors.The only way to know if the key is correct is to verify the output. The output can be verified in total or with a hash or other v
TAG : objective-c
Date : November 22 2020, 10:33 AM , By : user2954910
PQgetResult always returns NULL
PQgetResult always returns NULL
I think the issue was by ths following , To help debug the issue, I started the PostgreSQL server with a debug level setting:
TAG : objective-c
Date : November 22 2020, 01:01 AM , By : Juan Carlos C
self.navigationController? is nil when pushing from a objective-c viewController to a Swift ViewController
self.navigationController? is nil when pushing from a objective-c viewController to a Swift ViewController
it helps some times If I call for the navigationController in viewDidAppear() it works fine. My problem was that I called for it in viewDidLoad() and it returned nil.
TAG : objective-c
Date : November 21 2020, 07:31 AM , By : Tedxxx
Where to add subViews that I want floating in an NSScrollView using AutoLayout?
Where to add subViews that I want floating in an NSScrollView using AutoLayout?
With these it helps The error message was caused by the fact that the relationship of self.superview had not been created at the time of adding the constraint.A further error ensues because the two constraints thc thc2 can't be added to the NSScroll
TAG : objective-c
Date : November 19 2020, 03:59 PM , By : user2952893
'User' in 'User-defined classes'
'User' in 'User-defined classes'
This might help you It means the classes which is created by user (developer or you) is User-defined classes. For example you create one class with "test.m", then "test.m" is user defined class.NSString, NSNumber, NSMutableArray are not user defined
TAG : objective-c
Date : November 19 2020, 01:01 AM , By : Mohammed Al Qassem
How to get value of a key in NSDictionary?
How to get value of a key in NSDictionary?
wish of those help This is the userinfo of my silent push notification. How to get value of result in objective-c?
TAG : objective-c
Date : November 19 2020, 01:01 AM , By : user2952639
Adding Border Line to UITableView in StoryBoard
Adding Border Line to UITableView in StoryBoard
I think the issue was by ths following , I am working with my user interface in Xcode using Storyboard. , It just simple, Try this
TAG : objective-c
Date : November 18 2020, 03:49 PM , By : SIVA
Mac App Storyboard - Access Document in NSViewController
Mac App Storyboard - Access Document in NSViewController
I wish this helpful for you I was just wrestling with this myself. I started with the standard Yosemite template and was trying to use [self.view.window.windowController document] in -viewDidLoad. At that point, self.view.window is nil, so there's no
TAG : objective-c
Date : November 18 2020, 03:49 PM , By : user2952010
Objective c, reposition a view above the keyboard in one single animation
Objective c, reposition a view above the keyboard in one single animation
it should still fix some issue You better use UIKeyboardWillChangeFrameNotification notification.Add observer first.
TAG : objective-c
Date : November 18 2020, 03:49 PM , By : user2951831
Dismiss modal segue
Dismiss modal segue
fixed the issue. Will look into that further As per the tutorial link you have given in question.There is a APPViewController which is root for the UIPageViewController and also in AppDelegate, so on top of that view, require a Skip button which is a
TAG : objective-c
Date : November 18 2020, 11:13 AM , By : user2951635
Error message is saying my data is NULL - NSKeyedUnArchiver - I've followed all the steps - still won't work
Error message is saying my data is NULL - NSKeyedUnArchiver - I've followed all the steps - still won't work
I think the issue was by ths following , I want to save an NSMutableArray *allRedItems to a file. It contains custom objects, Itemz : , You save it in NSDocumentationDirectory
TAG : objective-c
Date : November 17 2020, 11:58 AM , By : Rodrigo F Vela
Remove apostrophe in CFStringTransform results
Remove apostrophe in CFStringTransform results
I think the issue was by ths following , The docs for CFStringTransform() note that it can take "any valid ICU transform ID defined in the ICU User Guide for Transforms". From that and a bit of knowledge about Unicode categories, I came up with the f
TAG : objective-c
Date : November 17 2020, 11:58 AM , By : Paige O
Label showing wrong values while NSLog shows the right ones in SpriteKit
Label showing wrong values while NSLog shows the right ones in SpriteKit
hope this fix your issue I can't remember the name of them but you've mixed up your %@, %ld thingies. Your NSLog uses %@ and works.
TAG : objective-c
Date : November 17 2020, 11:58 AM , By : user2950750
How to work with locally modified Cocoapod which don't include podspec?
How to work with locally modified Cocoapod which don't include podspec?
hope this fix your issue I typically fork the repo, add the podspec and then make changes, here is an example.It looks like: pod 'ReactiveCocoa', :git => "https://github.com/ashfurrow/ReactiveCocoa", :branch => "podspec"
TAG : objective-c
Date : November 17 2020, 11:52 AM , By : Sunny
What does kCGWindowSharingState actually do?
What does kCGWindowSharingState actually do?
hop of those help? If you're going to ignore a window's sharing state you should be prepared to have some windows behave just as the API specifies and, apparently according to your own research, some not.Higher up in the Cocoa APIs, NSWindow has a sh
TAG : objective-c
Date : November 17 2020, 11:52 AM , By : user2950259
It is possible to copy a CFTypeRef?
It is possible to copy a CFTypeRef?
it helps some times No, it is not possible to copy a CFTypeRef in the general case.Typically, it would be up to the caller of such a function to make sure that the keys were not mutated while in the dictionary. (It's not necessarily a problem if a va
TAG : objective-c
Date : November 17 2020, 04:28 AM , By : user2949961
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org