Use the commend “defaults delete de.zach.ArtSaverApp” to delete all your prefs.
That should remove them everywhere.
At least that is what as worked for my in my limited experience.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
>
> I'm hoping there's a built-in solution or framework that I'm just overlooking.
Guess: The Apple Archive framework
https://developer.apple.com/documentation/applearchive
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not pos
On Feb 13, 2022, at 4:39 PM, Jack Brindle via Cocoa-dev
wrote:
>
> In Monterey, /tmp is now only writeable by root.
??? Does terminal.app have special privs?
~% ls -l /tmp
lrwxr-xr-x@ 1 root wheel 11 Feb 6 13:22 /tmp@ -> private/tmp
~% ls -ld /private/tmp
drwxrwxrwt 23 root wheel 736 Feb
> Our app isn't sandboxed, but when I try to create a "/Library/Application
> Support/NewFolder" folder in there I get the following message:
>
> /*You don't have permission to save the file "NewFolder" in the folder
> "Application Support."*/
Yup. You want ~/Library/Application Support/NewF
I don’t know about zip file distribution, but I have both the app AND the dmg
that I use for distribution notarized. I create the DMG from a folder
containing the notarized app and a link to /Applications then run codesign on
the DMG and upload the result to Apple for notarization. Once notar
On Aug 19, 2020, at 11:11 AM, Saagar Jha via Cocoa-dev
wrote:
>
> Which file are you modifying? The one in your source directory? Because the
> one that goes in the final product doesn’t get copied over until after you’ve
> lost most control over the build process (it’s done by Xcode after the
> On Jun 20, 2020, at 4:31 PM, Gabriel Zachmann wrote:
>
>>
>> If app B can be treated as a sub-process of app A you can use Process. I
>> know that argument passing works with Process.
>
> Sounds good. How can A launch B as its sub-process? (and pass command line
> arguments?)
>
>
le
> On Jun 20, 2020, at 4:16 PM, Gabriel Zachmann wrote:
>
> So, the new question is: is there any easy way how my app A can launch my app
> B
> and pass a simple piece of info from A to B, such as a boolean flag or an
> integer?
If app B can be treated as a sub-process of app A you can use P
>
> That works fine, *except* the command line arguments are not passed along :-(
Is your app sandboxed? Arguments are ignored in sandboxed applications.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mo
Using
> system_profiler SPDisplaysDataType
> I can retrieve the size of a Mac's display in pixels.
>
> However, the command
>
> tell application "System Events" to get the size of every window of every
> process
tell application “Finder”
set screen_resolution to bounds of window of deskto
>> Also weird, why would it phone home for a shell script which has neither
>> been stapled nor even code-signed?
> I think you answered the question just then… a "shell script which has
> neither been stapled nor even code-signed”. Google XProtect & Gatekeeper.
1) The executable part of
Update to what I wrote:
> So the data I need is somewhere in the metadata, but CGImage... can’t see it.
> This is only reported to be an issue when processing Cannon raw CR3 format
> files.
FWIW this issue was resolved by the release of macOS 10.15.4. Did not even
need to recompile using the
Hello all,
Given a URL to an image I currently do this to grab image properties (ignoring
error handling to simplify the example code)
let imgRef = CGImageSourceCreateWithURL(url as CFURL, nil)
let imgProps = CGImageSourceCopyPropertiesAtIndex(imgRef, 0, nil) as
NSDictionary?
let GPSDictionary
>
> But a typographical point is a unit of distance. There are 27 points per
> inch. (I.e., a typographical point is 0.0139 inches or 0.353 mm).
Transposition typo? There are 72 points/inch. The given inch and mm values are
correct if rounded to 3 digits.
_
On Jan 21, 2020, at 3:04 PM, robmar...@frontiernet.net wrote:
>
> Have you tried adding a NSDateFormatter to the DatePickerCell (in code or in
> the xib) and setting its format string to what you want?
There doesn’t seem to be any way to get the DatePickerCell to use the
formatter. At least no
On Jan 21, 2020, at 3:04 PM, robmar...@frontiernet.net wrote:
>
> Have you tried adding a NSDateFormatter to the DatePickerCell (in code or in
> the xib) and setting its format string to what you want?
>
> Haven't tried it, but might work...
No, I hadn’t. I dragged a DateFormatter over the cel
Is there a way to change the date format used by NSDatePicker?
The dateValue I’m seeing, for example, is "1/20/2020 1:41:42 PM”. At a minimum
I’d like the time displayed in 24 hour mode instead of AM/PM. Ideally I’d like
the date to be “:MM:dd HH:mm:ss” because that is how it is used elsew
> What is this 'block-based animation API’?\
The section of the doc named Animating Views starts with: Use of these methods
is discouraged. Use the UIViewPropertyAnimator class to perform animations
instead.
I’d start looking there.
___
Cocoa-dev m
On Oct 2, 2019, at 1:15 PM, Sam Ryan via Cocoa-dev
wrote:
>
> It has felt like the support is not there the
> last few years, with much of the documentation "archived" and the new
> documentation focused on Swift.
While the text in the doc window shows me the Swift version I can always click
o
On May 14, 2019, at 2:11 PM, Vojtěch Meluzín wrote:
>
> I know it has been deprecated, no argues there, but my point is that the
> headers are there, yet the compiler doesn't find them.
Interesting.
$ find /Applications/Xcode.app -name CarbonSound.h -print
returns no results. Where are you
> On Oct 24, 2018, at 12:45 PM, James Merkel wrote:
>
> Has anyone actually been able to get an App notarized in Xcode?
Yes.
> However, back in Xcode in the Organizer window it says “Processing” and the
> “Export Notarized App” button isn’t enabled.
I didn’t have that issue. Well, I though
Have you tried disabling SMB client side caching?
https://support.apple.com/en-us/HT207520
I don’t know if that note pertains to current versions of macos.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mo
I open or drag a group of files into my sandboxed app. The app then acts upon
those files. When I exit the app I see that sandbox
(~/Library/Containers/org.snafu.app/Data/Documents) still contains aliases to
the files I opened.
What gets rid of those aliases?
My “save” operation does not inv
> Can anyone suggest an open source license for Nursery framework?
https://creativecommons.org/share-your-work/
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the m
> On Oct 25, 2017, at 6:11 PM, Alex Zavatone wrote:
>
> This might be simple. Please correct me if I am wrong, I think the last time
> I dealt with this was in 2012.
>
> Isn’t there a method or property such as canDragPin that you have to override
> or implement in your subclass?
I’m sett
I'm not sure what I'm doing wrong or failing to do, but I can't get a map pin
annotation to drag. Instead I'm dragging the entire map.
Pin is created and placed on a map using this code:
mapPin = MKPointAnnotation()
if let pin = mapPin {
pin.coordinate =
> I am trying to determine whether or not the pin is in front, left, right,
> or behind the user. I am going to perform calculations within
>
> func locationManager(_ manager: CLLocationManager, didUpdateLocations
> locations: [CLLocation]) {
>
> I already determine distance. How might I go about
ARRRGGGHHH... this was supposed to go to the Xcode list. Sorry for the
noise.
> On Sep 9, 2016, at 3:53 PM, Marco S Hyman wrote:
>
> I’ve an app that uses a perl helper script. I’d like to sandbox the app but
> haven’t had any luck it getting it to work. Can it be don
I’ve an app that uses a perl helper script. I’d like to sandbox the app but
haven’t had any luck it getting it to work. Can it be done? If so can someone
point me to some doc that might indicate how?
I've tried grabbing a security scoped bookmark to the perl script. Apparently
that worked at
>
> My Swift book (2.2) has no mention of “private” (Swift 3 beta has).
> But even assuming I had Swift 3, I do not quite understand how this should be
> done (I may be a bit dense).
Page 508 in the Swift 2.2 book I just downloaded from iBooks.
“Getters and Setters
Getters and setters for const
> On Sep 6, 2016, at 5:33 PM, Gerriet M. Denkmann wrote:
>
> var numbers: [UInt64] = …
>
> func numbers( upTo nbr: Int ) -> [UInt64]
> {
> let slice = numbers[ 0 ..< nbr ]
> return slice
> // Cannot convert return expression of type ‘ArraySlice'
> to retur
>
> NSString* argString = [NSString stringWithFormat:@"-i \"%@\" -c copy
> %@", [url absoluteString], [self.outputFileURL absoluteString]];
>
> self.ffMPEGTask = [NSTask launchedTaskWithLaunchPath:execPath
> arguments:@[argString]];
I believe arguments is an array of argument
>> On Feb 19, 2016, at 4:29 PM, Jens Alfke wrote:
>>
>> NSInteger is a typedef of ‘long’ in 64-bit, and ‘int’ in 32-bit.
>> You’re correct that %d should be used for NSInteger in 32-bit.
>
> The recommended way to use an NSInteger, as per Apple documentation, is to
> use %ld and explicitly cas
> My reasoning is that if you make it inflexible, you risk getting (say) 50%
> lovers and 50% haters. If you make it flexible, you risk getting 40% lovers
> and 40% haters, and 20% people who are annoyed because it’s too flexible or
> too complicated. That’s a net loss in satisfaction.
I think
> corresponds to your code. You might want to get the assembly from each of
> lldb and "otool -tV", as each may provide symbolication that the other
> doesn't. Hopefully, nearby references to selectors or strings will help you
> figure out which line of code the crash occurred on.
otool -t -V
>> if I define an internal class which implements a public protocol, who is
>> able to call the methods in that protocol? Anyone (it’s a public protocol),
>> only classes in the same framework or source file (the class is internal)?
>
> If you declare it internal it's internal. Adopting a publi
The code is in Swift. #define is not an option.
> There’s very little reason to use macros for things like this, when an inline
> function is as efficient and safer.
IMHO function calls also help readability. My version looks like this:
private let π = M_PI
private let d2r = π / 180 // degree
On Sep 30, 2015, at 2:20 PM, Alex Hall wrote:
>
> Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView
> in the object library in Xcode, no WKWebView at all.
No WKWebView in IB. You have to build your view in code. At least it was that
way last time I checked.
_
Arrgh... typo
> scrollview.borderType = NoBorder
That should be
scrollview.borderType = .NoBorder
of course. How come I never see that kind of thing until AFTER I hit send.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
On Sep 25, 2015, at 11:43 AM, Boyd Collier wrote:
>
> In objective-c programs, there are places where one can write lines like the
> following:
>
> [scrollview setBorderType:NSNoBorder];
>
> with NSNoBoarder being specified in an enum in NSView. But enums in swift
> are a different sort of b
> Searching the documentation for joinWithSeparator turns up nothing.
I’ve found the doc to be lacking in most beta builds, at least with respect to
swift. One of the first things I commonly do is open a playgound and “import
Swift” then command click on Swift to see the header. If I remember
>
> If the debugger's variable pane exposes it, it's misleading if it doesn't
> somehow indicate that it's not for the developer to access.
It is there for the developer to access -- when debugging. Might even be
useful. I sometimes find the information useful when trying to understand how
so
> On Aug 6, 2015, at 10:38 AM, Rick Mann wrote:
>
> I guess. But we need some kind of extensible way of defining a set of valid
> selectors, ideally with optional string conformance and raw values (but not
> required to be strings).
Maybe. Sounds like you want to use all of the familiar Obje
On Jul 27, 2015, at 3:06 PM, Quincey Morris
wrote:
> The problem is that kSecReturnData is a CFString, which is not a type that’s
> bridged automatically in the construction of a dictionary. The following
> works for me in a playground (b4):
>
> let d1 = [ kSecReturnData as NSString : t
> func genericFor(s:String) -> T {
>
>return T(s)! // error. ’T’ cannot be constructed because it has no
> accessible initializers
> }
At compile time there is no way of determining if T has an initializer that
takes a string. You could do something like this
protocol Ini
Hello,
I’m playing with an OS X app using storyboards. I’ve assigned an
Autosave name to the window in Xcode (version 7) and see this in user
defaults after starting the program.
"NSWindow Frame MainWindow" = "1040 566 540 300 0 0 2560 1417 “;
If I change the window size and check defaults I
>
> I can write in-line handlers for this, but I'm trying to write a separate
> method, and just assign the method as a handler, and I can't seem to get the
> signature right.
It gets interesting when you want to also specify that the handler uses the
C calling convention to pass as a callbac
> class
> Context
> {
>init()
>throws
>{
>let cocoaCTX = NSGraphicsContext.currentContext()
>guard let sysCTX = cocoaCTX.graphicsPort as! CGContextRef else { throw
> Errors.InvalidContext }
>CGContext = sysCTX;
>}
>
>var CGContext : CGContextRef
>
>> code such as that above wouldn’t be an issue.
>
> Again, pretty huge burden.
Only a burden to one who wants the ability to call functions or methods with
or without argument names. Many (most?) are not asking for that ability.
___
Cocoa-dev maili
On Jun 24, 2015, at 4:09 PM, Rick Mann wrote:
>
> I guess I disagree: it's obvious in most cases. Again, I'm just arguing for
> the OPTION. You can always choose to use the parameter name if you wish.
You have the option. Given this signature:
func foo(intArg: Int, stringArg: String) -> Bo
> swift:20:26: Cannot find an initializer for type 'NSURLSession' that accepts
> an argument list of type '(configuration: NSURLSessionConfiguration,
> delegate: HSNDataManager.Type, delegateQueue: nil)’
You are passing “self” as the delegate in a *class* method. The class is
not a NSURLSessionD
>> yes ‘=‘ instead of ‘==‘. I hit on that trying random things and don’t really
>> understand it, an ‘=‘ in an if() test is something I’m having trouble
>> getting my brain around.
>
> It’s not that strange. The statement contains an initializer (conceptually
> 'let a = y.assocatedValue’), so
> public class RDKBLEService : NSObject
> {
> let peripheral : CBPeripheral
>
> public init( peripheral: CBPeripheral )
> {
> self.peripheral = peripheral
> }
> }
Swift doesn’t think init in NSObject is a designated initializer. Add
“override” as you would w
On Jun 1, 2015, at 4:16 PM, Michael David Crawford wrote:
>
> The paper entitled "Goto Considered Harmful" - by Dijkstra? - was
> criticizing spaghetti code. At the time, commonly used programming
> languages did not have control flow statements like "if/then/else",
> "do/while", "while" or "swi
On May 28, 2015, at 10:26 AM, Rick Mann wrote:
>
> And, it's still not resolved. Would everyone please email
> devprogr...@apple.com and let them know you're seeing it, too? Give them a
> screenshot, and let them know the following:
I was seeing the issue until I turned off Ghostery. Whitelis
On Apr 25, 2015, at 7:59 AM, William Squires wrote:
> Where I'm running into problems is this line of code:
>
> func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath:
> NSIndexPath) -> UITableViewCell
> {
> var cell = tableView.dequeueReusableCellWithIdentifier(simpleTableIdent
On Apr 21, 2015, at 5:35 AM, Michael Crawford wrote:
>
> The reason I haven't been using version control is that I prefer to
> operate my own servers - but then I have to set them up, and it's
> quicker just to roll a tarball.
Huh? Nothing about a version control system limits your use of your
> On Apr 3, 2015, at 11:04 AM, Quincey Morris
> wrote:
>
> On Apr 3, 2015, at 04:00 , Charles Jenkins wrote:
>>
>>for char in String( self ).utf16 {
>> if set.characterIsMember( char ) {
>>return true
>> }
>
> Now we’re back to the place we started. This code is wrong.
> extension Character {
>
> func isMemberOfSet( set:NSCharacterSet )
> -> Bool
> {
> // The for loop only executes once;
> // its purpose is to convert Character to a type
> // you can actually do something with
> for char in String( self ).utf16 {
> if set.character
> On Mar 29, 2015, at 10:51 PM, Daryle Walker wrote:
>
>> An idea... move the destination file, if it exists, to the trash.
>> See NSFileManager's trashItemAtURL:resultingItemURL:error: to do that in a
>> safe manner. Trash the old file then save the new.
>
> That was one of my suggestions. S
> If renaming is the answer, is there any sample code to do this safely, taking
> care of all cases? (For example, replacement name already taken, or adding
> an extension if the file doesn’t start with one, etc.)
An idea... move the destination file, if it exists, to the trash.
See NSFileManag
> nm -u on my iOS app's binary emits:
Run nm on each of the .o files that make up the binary.
$ cd ~/Library/Developer/Xcode/DerivedData/...
$ for f in *.o; do echo $f && nm -u $f | grep {whatever}; done
Marc
___
Cocoa-dev mailing list (Cocoa-dev@lis
> The consequence of this possible future scenario would be that an Apple
> engineer writing code for an interoperable framework would write the .m file
> in Obj-C, but the public .h file in Swift.
Except that swift doesn't have .h files. The auto generated files your
are seeing are not .h fil
> class Utils: NSObject {
>
>class func isValidUrl(url: NSURL?) {
> var lower = url?.scheme?.lowercaseString
>return lower == "http" || lower == "https"
> }
> }
> Sadly I'm getting and error in the return line that I can't interprete:
> Cannot invoke == with argument list of ty
> On Feb 24, 2015, at 10:16 AM, Quincey Morris
> wrote:
>
> The following work, too (Xcode 6.1.1):
>
> let f1: NSNumber = font.pointSize
> let f2 = font.pointSize as NSNumber
>
> ...
>
> (Things may have changed in Swift 1.2, though.)
>
Works fine in 1.2, too.
$ swift
Welcome
> My question is in two parts:
See https://github.com/libressl-portable/portable
"The resulting library and 'openssl' utility is largely API-compatible with
OpenSSL 1.0.1. However, it is not ABI compatible - you will need to relink your
programs to LibreSSL in order to use it, just as in moving f
> Why did it compile if it's an incomplete type? Shouldn't that be something
> that you catch at compile time in a type-safe language?
Don't know. It failed on my machine. I copied/pasted your code to a
playground and got a red exclamation point due to a fault. Then I looked
closer at the co
On Dec 11, 2014, at 3:24 PM, Daniel Blakemore wrote:
>
> If I do this, however, it breaks:
> var arr2 = [Array](count:6, repeatedValue:[Color](count:8, repeatedValue:
> Color()))
[Array] is syntactic sugar for Array. It is not a complete type.
It is an array of arrays of
Let the type infe
On Nov 1, 2014, at 9:17 AM, Gerriet M. Denkmann wrote:
>
> TextField (this should be ≥ something, otherwise fitting to content)
> ...
> variable distance (≥ some minimum)
Are they the same priorities?
Marc
___
Cocoa-dev mailing list (Cocoa-dev@lists
>
> The suggested alternative is NSAlertFirstButtonReturn, etc., which have
> values, which very much unlike the actual returned values.
Those values worked for me found by trial an error because the documentation
and headers made no sense at all. I was working in swift and found
this code to
>> So you get to go wrap fcntl() in something else it seems.
>
> So, how would I do that, exactly? I suppose I have to pass Objective-C
> collection types to a method (which could be a straight C function) from a
> Swift call? That is, can a Swift variadic call translate into a C function
> ca
On Sep 10, 2014, at 8:19 PM, Charles Srstka wrote:
>
>> Where did you get the idea that NSUserDefaults doesn't work for sandboxed
>> apps? It certainly does.
>
> #import
>
> int main(int argc, const char * argv[]) {
>@autoreleasepool {
>NSUserDefaults *def = [NSUserDefaults stand
On Aug 20, 2014, at 8:32 PM, Gerriet M. Denkmann wrote:
> But I thought that maybe memmove might be more efficient:
Optimizing already?
>
> let dest : UnsafeMutablePointer = arr + lowerIndex + 1
arr + lowerIndex + 1 is meaningless to Swift. An [Int32] is not a
pointer that can be offset by
On Aug 16, 2014, at 2:13 PM, Quincey Morris
wrote:
> Er, am I missing something, or is this not a case that generic functions
> handle quite easily?
That's what I thought, too.
protocol MyProtocol {
init()
// ...
}
func myFunction() {
// for(...) {
// p = ...
//
On Aug 14, 2014, at 1:51 AM, Gerriet M. Denkmann wrote:
> Well, it should, but it does not. I still get the error: 'String' is not a
> subtype of 'AppDelegate'
Note the location of the error. The compiler is complaining that
myStatusHandler is the wrong type in this line:
> let someThin
On Aug 13, 2014, at 7:54 AM, Koen van der Drift
wrote:
> Any tips for where I can find the source code for BSD diff? I found the GNU
> diffutils already here: http://www.gnu.org/software/diffutils/.
Try one of the bsd source repositories. An example that I'm
familiar with is the OpenBSD tree.
On Jul 3, 2014, at 10:31 AM, Alex Zavatone wrote:
> Firefox doesn't resolve start.rental either.
> Neither does Chrome.
Yup. It is not a valid TLD in that .rental is not known to any of
the root servers. Domain lookups for uncached entries start at one
of the root servers. If those servers do
On May 19, 2014, at 1:03 PM, Alex Zavatone wrote:
> Out of curiosity, in which version of the OS is pf taking over for ipfw?
The switch started in Lion. I don't know if ipfw has been completely
replaced. I seem to remember that some things were still being
done in ipfw. Or maybe I'm thinking
On May 19, 2014, at 12:02 PM, Jens Alfke wrote:
> It’s ipfw under the hood; a web-search for that might turn up some info.
> Also, I suggest asking on the darwin-userlevel list, which is a more
> appropriate forum for this question since it isn’t about Cocoa.
ipfw is deprecated. pf -- see pf
> The HTML in the app and on the website is slightly different, I use PHP to
> generate the HTML.
>
> A more modern approach would probably be to use a static site generator like
> Jekyll, which would allow you to use templates, write in Markdown, etc.
You can use Markdown with PHP: https://git
> What on earth is going on with your app(s) that requires preferences to be
> deleted? If, after all these years of your being a very accomplished
> developer, your apps aren’t robust enough to deal with unusable or
> inconsistent values in prefs — or, more to the point, put the prefs into such
On Oct 16, 2013, at 12:48 PM, Eric E. Dolecki wrote:
> I've been asked to make a tableview with 8 rows. Each row has a UISwitch.
> Based on a combination of switch values, the result would be a different
> image displayed to the right of the table (this is for iPad).
>
> How would I best go abo
> I seem to have a loose end though -- when I examine the UIWebView's
> scrollView property, it initially has a non-nil delegate. I don't know if I
> should "interpose" as delegate and after taking my snapshot, call the
> original delegate, or only set myself as a delegate instead of the origin
On 2013-04-22, at 9:04 AM, Motti Shneor wrote:
> To be very precise --- I'd like to know how to be notified about ANY UIView
> visual change. It somehow seems very obvious to me that such "delegate call"
> must exist. Maybe I'm overlooking something very basic here.
I think I had completely m
On 2013-04-22, at 3:26 AM, Motti Shneor wrote:
> Hello everyone. I asked this several times before, but no one gave any hint
> -- I'd like to know if anyone here has any clue, at least where to search for
> an answer.
>
> I need to observe the visible contents of a UIWebView dIsplayed in my i
> 3) The TKOutlineView then later attempts to send the
> message from #1 above to its delegate.
The code noted earlier used introspection to ensure the delegate responded
to the selector before the message was sent. A non TKOutlineViewDelegate
conforming object won't respond to the selector. T
On Dec 7, 2012, at 8:18 PM, Steve Sisak wrote:
> I'm interested if there are an any issued I'm missing in the Obj-C,
> @synchronized(self), instance variable case.
Your pattern can fail if this line
_someDictionary = temp;
isn't atomic.
__
On Nov 28, 2012, at 3:08 PM, Quincey Morris
wrote:
>> Mostly an easy automated crutch for people who find git and svn a bit too
>> technical.
>
> Oh, come on! If you're prepared to commit your changes before *every* global
> search/replace and *every* refactor then snapshot is similar to a co
On Nov 21, 2012, at 6:04 PM, Keary Suska wrote:
>> Are you sure this is the case? All sounds (including system beeps) on my
>> Macs always play through external speakers when connected, and I don't seem
>> to have any way to tell it otherwise…
Sound preference pane, Sound Effects tab. It lets
> This is completely the wrong way to implement a property. The static
> variable will be shared between all instances. Here's how you should be
> doing a lazy loaded var:
>
> @implementation MyClass
> {
>NSDictionary *_someDictionary
> }
>
> - (NSDictionary *)someDictionary
> {
>stat
Looking at the docs, dispatch_once takes care of the synchronization for you:
https://developer.apple.com/library/mac/ipad/#documentation/Performance/Reference/GCD_libdispatch_Ref/Reference/reference.html
It should therefore be thread safe to use without any additional
synchronization code.
Se
On Nov 7, 2012, at 7:23 PM, Graham Cox wrote:
> Never mind, Time Machine saved my ass. I must have touched the file somehow
> (why are these writable?).
Bet it's another case of autosave doing unintended harm. Checking the "Ask to
keep changes when closing documents" option in General System
I wonder if the problem might be that data is an autoreleased object, which
automatically gets dealloc'ed at the end of the autorelease pool (as explained
in the docs). Have you tried replacing
*error = data
with
*error = [data copy]
and seeing what happens?
On 2012-11-07, at 8:05 AM, Andrea
On Sep 29, 2012, at 9:11 PM, Quincey Morris
wrote:
> I believe it's official syntax. It's not (quite) documented in the developer
> documentation, but I assume it's in the clang docs somewhere.
http://clang.llvm.org/docs/BlockLanguageSpec.txt
___
C
On Sep 20, 2012, at 9:19 PM, Graham Cox wrote:
> Honestly, this really stinks. I'm finding it hard to believe that Apple in
> their wisdom feel this is actually easier to use than the old way of doing
> things. I'd be interested to hear others' thoughts on this, surely it's not
> just me?
It'
> Basically, there is no case in which the old save paradigm makes sense
> and the new autosave paradigm does not.
Autosave does not make sense for those users who create new
documents by editing an existing doc then doing a save-as.
OK, it works if they remember to do the save-as before making
an
On Aug 31, 2012, at 6:04 AM, Gerriet M. Denkmann wrote:
> But often (not always) my app (while in DarkWake) gets:
> Error getaddrinfo(time.apple.com, ntp) -> nodename nor servname provided, or
> not known
I believe its a race condition. NTP is trying to access the network
before it is fully re
On Aug 17, 2012, at 5:44 PM, John MacMullin wrote:
> It appears that my program hangs after the following console log events:
>
> 8/17/12 3:15:11.555 PM WindowServer[104]: CGXDisableUpdate: UI updates were
> forcibly disabled by application "X" for over 1.00 seconds. Server
> has re-en
On Aug 17, 2012, at 4:31 PM, Nick wrote:
> Here are some of the other screenshots.. I wonder what would it take
> to create something like that..
> They even customized the menus (it has black background and a custom fount)..
>
>
> http://itc.ua/files/pics/2(713).jpg
I think that is Adobe Ligh
On Aug 15, 2012, at 8:24 PM, Jens Alfke wrote:
>> The images are typically 25 MB Canon 7D raw image files that have
>> been pre-alloc'ed and initWithContentsOfFile:
>
> NSImage doesn't actually load the image pixels until it needs to. Merely
> initializing an instance won't do it.
That matche
1 - 100 of 205 matches
Mail list logo