Questions tagged [foundation]

Foundation is a framework written in Objective-C that implements many useful classes and functions. For the responsive front-end framework Zurb Foundation, please use the tag [zurb-foundation].

Foundation is a framework written in Objective-C that implements many useful classes and functions. Foundation is used by almost any Objective-C application, as it provides memory management and other runtime features, without the need to use the Objective-C runtime API directly.


References

Related Topics

Separate Topics

This topic is often confused with:

941 questions
0
votes
2 answers

NSRegularExpression to extract url between 2 strings

I'm using an NSRegularExpression to extract a URL between 2 strings, here is the whole string:
user1202420
  • 79
  • 3
  • 8
0
votes
2 answers

Storing NaN in property list (plist) file

Is it possible to store a NaN in a property list file. I tried:
jcb344
  • 323
  • 5
  • 16
0
votes
1 answer

NSNotificationCenter in a Foundation Tool

I am creating a server which must run as a privileged helper tool on OS X. In it, I am attempting to use NSSocketPort, NSFileHandle, and NSNotificationCenter to perform asynchronous IO on a listening socket. However, NSNotificationCenter refuses to…
John Colanduoni
  • 305
  • 2
  • 8
0
votes
1 answer

Oracle Hyperion Foundation Services 11.1.2.1

I am new in Oracle Hyperion and I am going to download Oracle Hyperion Foundation Services 11.1.2.1 documentation. I have searched it but I did not get write documentation. If you have any Idea please help me.
user1252398
  • 1,069
  • 7
  • 22
  • 29
0
votes
1 answer

Prevent countdown going into negatives

I've created a countdown timer and it works great.. but when it reaches zero it continues counting down.. so it shows -1, -2, -3 etc. How do I prevent it from doing this? This is my code from the implementation file.. @implementation…
user1253207
  • 45
  • 1
  • 1
  • 5
-1
votes
1 answer

Does the `Decimal` type have a maximum precision?

I thought the whole point of the Decimal type was arbitrary precision arithmetic. (Or rather I thought that Decimal supported arbitrary precision as well as supporting base-10 arithmetic.) However, an example I ran into while looking at somebody's…
Duncan C
  • 128,072
  • 22
  • 173
  • 272
-1
votes
4 answers

Should I import Foundation while importing UKit?

Should I include import for Foundation while importing UIKit (which has Foundation import in itself)? Could UIKit work without Foundation in the future and in theory break my code down the road?
Paweł Brewczynski
  • 2,665
  • 3
  • 30
  • 43
-1
votes
1 answer

Swift 5 - Dateformatter not working as expected

I was playing around with date formatter in swift, but the AM/PM thing is not working in my code. import Foundation let dtstr = "Tuesday, July 28, 2020 4:15:45 PM" let formatter = DateFormatter() formatter.dateFormat = "eeee, MMMM d, yyyy h:m:s…
Sushi Bear
  • 53
  • 1
  • 5
-1
votes
1 answer

Format integer to minutes with new Foundation formatters?

I'm trying to format an integer to display it as minutes, but I can't get the syntax right and the docs are still light on this. This is what I'm trying: let value: Int = 20 Text(value.formatted(.components(style: .abbreviated, fields:…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
-1
votes
1 answer

TextField formatting the amount with 2 decimal point

I have the following requirement Textfield should restrict the decimal point to 2 values. if the user input the numbers with out any "." then the text field should format the values to like this e.g. TYPING THIS -> LEADS TO THIS AMOUNT 27 ->…
nickypatson
  • 146
  • 2
  • 13
-1
votes
1 answer

I cannot access to URL instance on the playground(Swift)

Before I start, I want to let you know that I am not a good English speaker. But if you answer me, I will translate the best I can. I couldn't find the answer for "What should I do to access the URL". I just wanted to make a URL instance in…
BDios
  • 1
-1
votes
1 answer

Why the value of my variable has changed?

I called an API for rate currency, my variable "taux" is define at the begin of the class. So when I define the value of "taux" the value is great ( first print(taux)) but at the end ( last print(taux) ) the value of the variable is not the same,…
daaamiii
  • 1
  • 1
-1
votes
1 answer

Using Years unit interval in Swift Foundation Measurements framework

how can I display date iterval in years (or years + months) using Foundation’s Measurements()? I’ve made it to display interval but biggest unit I’ve found it hours … and it is not valid for me (display with beautiful localisation 87600 hours for…
Paweł Madej
  • 1,229
  • 23
  • 42
-1
votes
1 answer

Does extension return new instance each time

Consider this case, a variable declared in an extension, like this. extension UIViewController { var apiClient: APIClient { return APIClientImplementation() } } Does this extension return a new instance each time i call it from a…
Mohmmad S
  • 5,001
  • 4
  • 18
  • 50
-1
votes
2 answers

How To Write To File After Button Is Clicked

I made a simple medication program that all it does is every time I click Take Medication button it stores the current time in NSUserDefaults. Well, I'd like to make it where it instead saves the Date & Time to a file so I can then keep a log of…
John Martin
  • 443
  • 1
  • 4
  • 7