On Sep 26, 2015, at 16:49 , Jerry Krinock wrote:
>
> By “starter thread”, I presume you mean the one which is invoking -[NSThread
> start].
Yup.
> If what you are saying is true, how could we ever execute
> -performSelectorOnMainThread::: in a secondary thread without
On Sep 26, 2015, at 15:33 , Jerry Krinock wrote:
>
> Should not -[NSThread start] always return before running any of my code in
> the new thread?
You have absolutely no control over it, unless you introduce your own
synchronization mechanisms.
The *earliest* it can return is
On Sep 23, 2015, at 17:40 , Jens Alfke wrote:
>
> No, there’s no simple API for this.
There’s a simple way to play an arbitrary finite-length sound (AVAudioPlayer).
All you need is a sound file (or a couple of sound files) that can easily be
created in an audio editor.
On Sep 21, 2015, at 14:08 , Raglan T. Tiger wrote:
>
> Does anyone know if Xcode 7 should show as version 7 in the Finder preview
> panel?
Yes, it does.
Have you checked to make sure you don’t have a copy of Xcode 6 on an external
disk? Note that you can right-click
On Sep 21, 2015, at 14:52 , Marek Hrušovský wrote:
>
> Personally I would do it like this:
> 1. Figure out what values you need to store
> 2. Create custom object called configuration; for each window one kind
> 3. Make it conform nscoding and add a delegate property (which
On Sep 21, 2015, at 11:01 , Alex Hall wrote:
>
> I'm setting up a binding using an NSController, which I want to connect the
> currently selected row in a table to the values of some UI controls. Put
> another way, whenever the table's selected row changes, the binding
On Sep 21, 2015, at 11:09 , Kurt Sutter wrote:
>
> I want the state information of the windows and views to be stored in the
> document so that the same windows and views reopen when the user opens the
> document.
>
> What is the best way to do that? I guess I have to take
On Sep 19, 2015, at 20:09 , Alex Hall wrote:
>
> [_NSControllerObjectProxy copyWithZone:]: unrecognized selector sent to
> instance 0x60800ae0
>
> failed to set (contentViewController) user defined inspected property on
> (NSWindow): -[_NSControllerObjectProxy
On Sep 20, 2015, at 11:41 , Raglan T. Tiger wrote:
>
> So, against my better judgement, I updated to Xcode 7.
>
> The installed version is 6.31, there ar no iOS9 or Watch SDKs.
I don’t know what “6.31” means - maybe you mean 6.3.1? In which case you’re
running Xcode
On Sep 19, 2015, at 13:46 , Jens Alfke wrote:
>
> Maybe it’s because the second type-spec T isn’t defined when the function is
> called.
What you say sounds very plausible for my cut-down example, but unless I’m
dreaming the original example explicitly declares what T is
On Sep 19, 2015, at 10:54 , Michael de Haan wrote:
>
> func createMOforEntityName(entityName:String,
> context:NSManagedObjectContext, key:String, keyAttribute: U) -> (Bool, T) {
>
>guard let mo:T = self.moExistsWith(entityName, key:key, keyAttribute:
>
On Sep 18, 2015, at 16:40 , Boyd Collier wrote:
>
> Any suggestions why this might be happening would be greatly appreciated.
You should approach this systematically.
1. Is your app actually creating 2 window controllers? You can look at the
object pointer in the
On Sep 18, 2015, at 16:46 , Alex Hall wrote:
>
> myField.accessibilityHelp="new help message"
>
Well, it’s a fascinating problem. I can see what’s wrong, but I don’t know why.
For some reason, the “accessibilityHelp” property, declared in the
NSAccessibility
On Sep 16, 2015, at 04:00 , Jean Suisse wrote:
>
> Does anyone know what to try / measure / observe to get more clues?
It seems you’re “losing” free memory fast enough for this to be visible using
heap generations in Instruments’ Allocations. The difficulty with marking
On Sep 16, 2015, at 14:28 , Jean Suisse wrote:
>
> I thought of that at first, to solve the uncommitted CA transactions issues.
> But the syntax is ugly.
Sure, but in modern Cocoa programming it’s a standard pattern, so it’s not
unreasonable to grin and bear it.
(It’s
On Sep 16, 2015, at 11:45 , Ken Thomases wrote:
>
> This is not legitimate. The -willChangeValueForKey: must occur before the
> property, as seen via its getter, has changed. This is necessary for
> observers who ask for the old value, which can include KVO itself for
On Sep 15, 2015, at 20:14 , Jim Thomason wrote:
>
> So I added this:
>
> class Foo {
> ...
> var image : NSImage { get { return self.type.image } }
>
> }
>
> The problem is, this image value is used to populate a cell in a Source
> Control List. When I add a new Foo,
On Sep 15, 2015, at 21:57 , Jerry Krinock wrote:
>
> NSSplitViewController was introduced in 10.10. I’ve read some posts which
> imply that there should be such a thing, with associated NSSplitViewItem
> objects, in the Object Library in Interface Builder. And it seems like
On Sep 15, 2015, at 17:29 , Alex Hall wrote:
>
> I figured text fields were for editing text, and text views were for
> displaying it.
In fact, text views are the views (as in “NSView", not as in “viewer”) that
codify *all* of the Cocoa text editing functionality. Text
On Sep 12, 2015, at 06:55 , Alex Hall wrote:
>
> if you need to display an array or dictionary in a table, when that data
> source could be updated at a random time or asynchronously, how might you do
> it without bindings?
Ah, but what do you mean by “without”? There are
(ugh, reposted due to size moderation, again)
On Sep 11, 2015, at 13:40 , Alex Hall wrote:
> What I've done so far is set things up, but not gotten the app to run. At
> first, I was getting some odd errors, but I eventually realized that
> populating my tweetsArray object
On Sep 11, 2015, at 21:05 , Quincey Morris
<quinceymor...@rivergatesoftware.com> wrote:
>
> There’s a sub-hierarchy of 3 other things, called “Table Cell View” […],
> "Table View Cell” […] and “Table View Cell” […].
On reflection, I feel obliged to emphasize — f
On Sep 11, 2015, at 15:49 , Alex Hall wrote:
>
> I followed all of that, and I see what you're saying. The binding to an array
> is, to it, no different than binding to a boolean or a string, it's just a
> single object. But how does a binding know what it's accessing? I
(continued from part 1)
On Sep 11, 2015, at 15:49 , Alex Hall > wrote:
>
> Out of curiosity, why do I not need these but I *do* need insert and remove
> methods for the property?
All standard UI elements use KVC to retrieve their values, or use
On Sep 11, 2015, at 20:20 , Alex Hall wrote:
>
> Okay, the error I'm seeing (about [ViewController count]) is the table asking
> for how big it should be.
Actually, that’s not it, though you can be excused for thinking so.
What’s wrong is that you tried to add way too many
(reposted to the list in 2 parts because the whole thing was 1 byte over the
stupid limit)
On Sep 8, 2015, at 21:04 , Alex Hall > wrote:
>
> and too little comprehension of how bindings work
I think it’s both easier than you think, and harder.
(continued from part 1)
The clever thing about array controllers is that to metal pieces they look like
plastic, and to plastic pieces they look like metal. Hence the name
“mediating”. As in legal arbitration, the mediator looks to each side like the
opposing side’s advocate. Their other
On Sep 9, 2015, at 21:22 , Jerry Krinock wrote:
>
> I’ve read that QTKit is deprecated but, oddly, I cannot find any mention of
> deprecation here in the QTKit Programming Guide:
The lack of a mention of deprecation isn’t so odd if you scroll to the bottom
of the page and note
On Sep 8, 2015, at 13:28 , Raglan T. Tiger wrote:
>
> What more do I need do ?
It’s hard to say, but at the very least you’ll actually need to *make* the
NSSlider first responder, which means you’ll have to click it first or tab to
it.
You also don’t say what you
On Sep 8, 2015, at 14:40 , David Durkee wrote:
>
> I haven’t been able to find a way to make trying to close the main window try
> to close the document even if the secondary window is open.
Set the ‘shouldCloseDocument’ property of the *main* win controller to YES.
On Sep 7, 2015, at 10:34 , Dave wrote:
>
> I’ve pasted the class below, can anyone see anything wrong with it in terms
> of not working in a Scroll/Stack View and auto layout?
Well, your drawRect method looks pretty fundamentally broken. The parameter
(‘theRect’ in
On Sep 6, 2015, at 10:25 , has wrote:
>
> Each of those intermediates describes a valid query in itself; you just keep
> chaining var/method calls until you build up the query you actually want.
Yes, that’s what I thought. I was trying to say that from an API
On Sep 5, 2015, at 13:41 , Richard Kennaway wrote:
>
> With a timer interval of 0.01, the MacBook Pro shows about 2 new 32-byte
> allocations per second, and the iMac shows about 100 per second.
I repeated the test, with that smaller interval, and yes I can see a very
On Sep 4, 2015, at 14:04 , Rick Mann wrote:
>
> Are my docs just broken, or are Xcode's docs not up-to-date with the language?
I don’t see the old ‘join’ documented anywhere, either in Xcode or on the
developer web site. However, if I search the Xcode documentation for
On Sep 4, 2015, at 14:04 , Rick Mann wrote:
>
> According to the docs in Xcode 7b6, join(_:) is a method on String. But if I
> try to call it:
> Of course, I can't command-click on join() to get to its declaration, and
> option-clicking on it doesn't link to its
On Sep 4, 2015, at 16:31 , has wrote:
>
> At risk of derail...
Do you mean “derail” or “detail”? I feel like I’m drowning in details.
My (first) “huh?” was to ask why you would prefer SomeClass
().makeASomeClassInstance () to SomeClass.makeASomeClassInstance (). I’m
On Sep 4, 2015, at 06:25 , Richard Kennaway wrote:
>
> If anyone wants to take a look at the whole project, I've put a zip file at
FWIW, I don’t see any leaks when I run your test project. This is with Xcode 7
beta 6 and the iOS 9 iPhone simulator, since that’s what
On Sep 3, 2015, at 11:16 , has wrote:
>
>> * Using an instance as a factory for its own class is contrary to general
>> usage, so is a smell at best. It’s a job for a class func.
>
> No, it's fine. It's for an Apple event query builder. Any odd smells are
> probably
Two thoughts about this.
1. Are you sure that ‘updateTime’ is running on the main thread? It needs to
be, since you’re updating the UI directly from this code.
2. The code inside ‘updateTime’ is very self-contained, so it seems easy to try
a divide-and-conquer strategy. What happens if you
On Sep 2, 2015, at 15:38 , David Durkee wrote:
>
> I just tried it and a couple of things went wrong. The name in the build
> settings was what appeared in the about box (when I ran in debug). And the
> program (the one that I archived and then exported) crashed on launch,
On Sep 2, 2015, at 12:21 , David Durkee wrote:
>
> I’m trying to build three targets for my Mac application that are nearly
> identical, and that I want to have the same app name.
I’m happy to be corrected if wrong, but I don’t think it really matters what
you do in Xcode,
On Sep 1, 2015, at 07:54 , Diederik Meijer wrote:
>
> What I’m not sure off is whether I need to place this call inside a
> dispatch_async(dispatch_get_main_queue(), ^ { }) block, or not?
I don’t know the answer, but since no one else has jumped in with facts, I’ll
On Aug 29, 2015, at 12:03 , Jens Alfke j...@mooseyard.com wrote:
Nope, NSTextTab only has a single initializer — the -initWithTextAlignment
one. (I just looked at both the Mac and iOS headers to make sure.)
You’re wrong about this. Both are in the class documentation, but the other one
is
On Aug 29, 2015, at 13:05 , Gavin Eadie ga...@umich.edu wrote:
I’ve been using Swift and moving some Obj-C code over to it, but I’m
concerned that it thinks this is “too complex to be solved in reasonable
time”:
import Foundation
let y = 1.0 * sin(1.0) + 1.0 * sin(1.0) + 1.0 *
On Aug 29, 2015, at 11:36 , Boyd Collier bcoll...@mail.sdsu.edu wrote:
In my swift code, I’ve tried just about every permutation I can think of to
get the type of tab or alignment that I want, but to no avail. It occurred
to me that perhaps swift 1.2, which is what I’m using, might not
On Aug 24, 2015, at 10:41 , Alex Kac a...@webis.net wrote:
registrationWindowController = [[RegistrationWindow alloc]
initWithWindowNibName:@RegistrationWindow];
[self.window beginSheet:registrationWindowController.window
completionHandler:^(NSModalResponse returnCode)
On Aug 24, 2015, at 11:00 , Alex Kac a...@webis.net wrote:
As for the relevant window properties - i’m not setting any. What would I set
to nil? I’m not setting delegate (you can see 100% of the code below - its
literally just getting the window controller, and then setting the window
On Aug 21, 2015, at 20:18 , Rick Mann rm...@latencyzero.com wrote:
Okay, so an Objective-C method that throws an exception...what happens?
This is part of the reason for avoiding calling the Swift feature “exceptions”.
What you throw in Obj-C is a NSException. It’s also an exception
On Aug 21, 2015, at 18:15 , Rick Mann rm...@latencyzero.com wrote:
It sure seems to be precisely an exception, in that it's an exception to the
normal flow of control (e.g. return). Just because the type of what's
thrown is called Error doesn't change the fact that they're conceptually
On Aug 21, 2015, at 17:27 , Rick Mann rm...@latencyzero.com wrote:
Just out of curiosity, should Swift allow property methods to throw
exceptions? Seems like a reasonable thing to me, but I don't know what the
ramifications are.
It seems to sit naturally in pure Swift syntax, so I wouldn’t
Clearly it’s a “more ambiguous” context than the while case, which prevents the
compiler from realizing that there is an alternative analysis that works. In
that case, it’s the error message that’s at fault, since it doesn’t really tell
you what’s wrong. In fact, this “consecutive statements”
On Aug 18, 2015, at 10:20 , Jens Alfke j...@mooseyard.com wrote:
But would Swift have caught this issue, since the CALayer.context property
isn’t visible in headers at all, only in the compiled code?
I don’t actually know (it’s a bit awkward to test), but my belief is that Swift
does not
On Aug 18, 2015, at 12:07 , Charles Srstka cocoa...@charlessoft.com wrote:
On Aug 18, 2015, at 12:20 PM, Jens Alfke j...@mooseyard.com
mailto:j...@mooseyard.com wrote:
But would Swift have caught this issue, since the CALayer.context property
isn’t visible in headers at all, only in the
On Aug 18, 2015, at 14:50 , Charles Srstka cocoa...@charlessoft.com wrote:
Look a little closer, and you’ll notice that the app code was in Swift (like
your app would be), and the framework code was in Objective-C (like the
Foundation/AppKit classes are).
Actually, I did look, but
naive in hoping that the advent
of Swift would bring a solution to that problem.
On Aug 18, 2015, at 15:19 , Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
Actually, I did look, but obviously I did not see.
This is the second time in a week I’ve looked at code and failed
On Aug 18, 2015, at 15:48 , Charles Srstka cocoa...@charlessoft.com wrote:
If bar() is declared as private instead of internal, the library’s copy of
bar gets called each time
The most likely difference resulting from that is that private bar can be
inferred to be ‘final’, whereas I’m not
On Aug 16, 2015, at 09:20 , Sasikumar JP jps...@gmail.com wrote:
But i am getting compilation error on Main.storyboard UIStackView before
iOS 9.0
What’s the “Build for” setting in the File inspector for Main.storyboard? The
default is “deployment target”, which means iOS 8 in your case, but
On Aug 16, 2015, at 09:10 , Seth Willits sli...@araelium.com wrote:
Really? This list has no opinions? That's hard to imagine :-)
Well, I do, but I didn’t post it because I didn’t think you’d like it.
I don’t think it’s worth annotating private methods at all (in general — I’m
sure there are
On Aug 14, 2015, at 15:44 , Rick Mann rm...@latencyzero.com wrote:
What is the type of self in the initializer closure,
It’s the class object itself, not an instance.
and is there a way to refer to the enclosing class instance?
No, there’s no instance here. “Enclosing” doesn’t really make
On Aug 14, 2015, at 17:26 , Jens Alfke j...@mooseyard.com wrote:
(Either way, it would still make sense for ‘self’ to be available.)
Yes and no. Because it’s an ivar, the ivar’s value is associated with an
instance rather than a class, but:
— It’s being initialized by an arbitrary closure.
On Aug 13, 2015, at 12:56 , Rick Mann rm...@latencyzero.com wrote:
Now I have to write:
let s2 = ((s as NSString).stringByExpandingTildeInPath as
NSString).stringByAppendingPathComponent(foo)
How is this better?
What happened is that the methods in NSPathUtilities.h are no longer
On Aug 11, 2015, at 09:46 , Jim Thomason j...@jimandkoka.com wrote:
I rebound my second column:
Table Cell View.Table View Cell. value is bound -
staticObjectController.selection.B.
This does not work. I receive no errors (other than Xcode not being able to
resolve the key path), and the
On Aug 11, 2015, at 11:29 , Jim Thomason j...@jimandkoka.com wrote:
Incredibly, this works. Changing it to an invalid key path (C) tosses an
exception immediately that the staticObject is not key-value coding compliant
for key C. Leaving it as B (the valid path) will toss no errors, but
On Aug 10, 2015, at 13:27 , Seth Willits sli...@araelium.com wrote:
What am I missing?
Coming at this from the other end (other than what Greg said):
— I think you are misunderstanding what NS_UNAVAILABLE means (although I’m by
no means sure about that).
— You never needed to say anything
On Aug 7, 2015, at 12:33 , Bill Cheeseman wjcheese...@gmail.com wrote:
But by calling super the way I showed in my original post, I am not making
use of any result that might be returned by super's implementation of the
method. And how could super's implementation return anything meaningful
On Aug 7, 2015, at 05:47 , Bill Cheeseman wjcheese...@gmail.com wrote:
I don't understand why the fact that NSSplitViewController implements these
delegate methods requires my override to call super, or what calling super
accomplishes in this situation.
According to the latest header
On Aug 6, 2015, at 09:20 , Jens Alfke j...@mooseyard.com wrote:
You can't do that, because instances of the subclassed enum won’t be valid
instances of the super-enum.
I’m not sure that subclassing is what’s being asked for here.
It seems like it would be useful to be able to define a new
On Aug 5, 2015, at 20:17 , Juanjo Conti jjco...@carouselapps.com wrote:
At the moment I'm using Keyed-Archiving, but after detecting performance
issues and read I'm changing to Core-Data.
What quantity of entries/records are you talking about here? It’s not going to
make a big difference to
On Aug 5, 2015, at 19:48 , Rick Mann rm...@latencyzero.com wrote:
why not be able to also do this?
protocol MyProtocol {
func myFunc()
{
some stuff
}
}
Chris Lattner has said (in the developer forums) that this seems like an
obvious future step for protocols, so
On Aug 4, 2015, at 15:58 , Rick Mann rm...@latencyzero.com wrote:
I'm curious why, and what the right approach might be?
As to why, the problem is that instances of a type conforming to a protocol
aren’t necessarily objects. If you want them to be, try declaring your protocol
like this:
On Jul 31, 2015, at 15:17 , Rick Mann rm...@latencyzero.com wrote:
I'm not sure why those methods are optional if they must be implemented, but
whatever.
Incidentally, they’re optional because a bindings-based table doesn’t use them,
but still might have a data source because the methods
On Jul 28, 2015, at 18:07 , Rick Mann rm...@latencyzero.com wrote:
dynamic var thumbnailURL: NSURL?
dynamic var numFiles: NSNumber?
dynamic var filesDownloaded : NSNumber?
dynamic var downloadState : NSNumber? =
On Jul 27, 2015, at 14:57 , Rick Mann rm...@latencyzero.com wrote:
error: 'Bool' is not convertible to 'BooleanLiteralConvertible'
let d1 = [ kSecReturnData : true ]
^~~~
error: '_' is not convertible to 'CFString'
let d2 = [ kSecReturnData :
On Jul 27, 2015, at 15:08 , Rick Mann rm...@latencyzero.com wrote:
Is it bridged automatically anywhere else? Seems like a lot of ad-hoc and
inconsistent support for bridging.
I dunno, really. Support for CF things (and C things and unmanaged pointers)
seems to vary release by release, so I
On Jul 26, 2015, at 15:57 , Rick Mann rm...@latencyzero.com wrote:
I'm finding it a bit cumbersome to use CGFloat in graphics code in Swift,
because the compiler won't let me pass a floating-point literal to a
parameter that takes a CGFloat. I have to wrap them all in CGFloat(val).
I’m not
On Jul 26, 2015, at 16:30 , Michael de Haan m...@comcast.net wrote:
func genericForT(s:String) - T {
return T(s)! // error. ’T’ cannot be constructed because it has no
accessible initializers
}
This *generic* definition asks for an invocation of ‘init (_ s: String)’ *for
any type
On Jul 26, 2015, at 16:29 , Rick Mann rm...@latencyzero.com wrote:
addArc(CGPoint(x: 0, y: 0), 50.0, 0.0, M_PI)
The problem in this case is that M_PI is a Double variable in Swift, not a
compile time constant like in Obj-C. You will unfortunately have to wrap it in
CGFloat(), then the
On Jul 26, 2015, at 16:38 , Rick Mann rm...@latencyzero.com wrote:
So, is a literal 0.0 not of type Double?
No, it’s a numeric literal, so it has no numeric type. However your ‘addArc’
function requires CGFloat parameters. Literal 0.0 is convertible to CGFloat,
but Double M_PI isn’t
On Jul 26, 2015, at 17:42 , Rick Mann rm...@latencyzero.com wrote:
So, why can I do this?
let n : NSNumber = M_PI
That’s bridged, not converted. :)
The Swift compiler has built-in knowledge of what can be bridged, and does a
typecast or value conversion according to context.
On Jul 26, 2015, at 15:49 , Michael de Haan m...@comcast.net wrote:
func genericTForT(s:String) - T {
return T(s)!
}
let intFromStr = intFor(9)
let intFromStrB:Double = genericTFor(9)
in other words, write a generic function that will return an Int, Double for
a given
On Jul 24, 2015, at 19:43 , Greg Parker gpar...@apple.com wrote:
Downside: you must specify the variable's type.
Incidentally, is there any conceptual reason why the type can’t be inferred in
this case? The syntax doesn’t seem any harder to decode than 'let … = … ? … :
…’ is.
On Jul 24, 2015, at 19:19 , Roland King r...@rols.org wrote:
let myVar = ( let ifNotOptional = something?.something else ) ?
ifNotOptional.stringName : “No Name”
but can’t find any syntax to do something like that
Can’t you do something like:
let myVar =
On Jul 23, 2015, at 07:32 , SevenBits sevenbitst...@gmail.com wrote:
What I meant was that apps which are not based on NSDocument do not,
according to Apple, automatically get behavior which is compatible with the
sandbox. Apple says that if we choose to go this route, you have to
On Jul 22, 2015, at 06:57 , Umut Can Genlik ugen...@gmail.com wrote:
According to documentation
err = AudioQueueDispose(queue, true);
I use true so dispose of AudioQueue happens immediately, although it does
dispose queue immediately sometimes , other times it has delay 3-4 seconds
up to 13
On Jul 22, 2015, at 13:55 , Umut Can Genlik ugen...@gmail.com wrote:
a. OSStatus doesnt return for a long time sometimes up to 14 seconds, so
following code doesnt enter the if condition and hangs there for 14 seconds.
Ah, I see. That’s nasty. I’ve never seen it do that.
If you can’t use
On Jul 20, 2015, at 13:50 , Gary L. Wade garyw...@desisoftsystems.com wrote:
Depending on your design, why not just use an NSSplitView to do all that for
you?
Um, before we go API-hog-wild here, we need to rule out the possibility that
the OP is just Doing It Wrong™. Because I’m 99.%
On Jul 20, 2015, at 13:30 , Thomas Wetmore t...@verizon.net wrote:
When I instantiate one of these views and place it in an NSWindow, I can drag
it around and I can resize it, as expected. Notably, however, I can resize it
down to zero size (and even smaller!), even though the two
On Jul 20, 2015, at 16:41 , Thomas Wetmore t...@verizon.net wrote:
Here is the mouse-down method with event loop. As you can see I am calling
setFrameOrigin in the dragging case and setting frame directly in the
resizing case.
So I think you need to retool your thinking. With auto layout,
On Jul 18, 2015, at 07:26 , SevenBits sevenbitst...@gmail.com wrote:
1) Apple’s docs say that non-document based apps don’t get sandboxing support
automatically handled for them, requiring the manual use of the NSFile* APIs.
I’m not sure what you mean by “sandboxing” here — and in your
On Jul 17, 2015, at 13:33 , Stephen J. Butler stephen.but...@gmail.com wrote:
How about using a Custom option with an associated String value?
enum Foo:String {
case Bar = “Bar
case Etc = “Etc
case Etc_Etc = “Etc Etc
case Custom(String)
}
Unfortunately that won’t compile.
On Jul 15, 2015, at 23:23 , Rick Mann rm...@latencyzero.com wrote:
ViewController.swift:86:36: 'NSErrorFailingURLStringKey' is unavailable: APIs
deprecated as of iOS 7 and earlier are unavailable in Swift
IDK, but in the NSError class reference documentation it says this was
deprecated in
On Jul 15, 2015, at 23:45 , Rick Mann rm...@latencyzero.com wrote:
I wish the deprecation warnings in the headers indicated the replacements.
When Xcode can tell you it's deprecated, it’s always worth checking in the
header file directly for any comments about what to use instead. (Note that
On Jul 16, 2015, at 18:19 , João Varela joaocvar...@gmail.com wrote:
The options I am using are the following:
NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited |
NSTrackingMouseMoved|
NSTrackingActiveInActiveApp;
Apart from the things Ken said, I’m struck by the
On Jul 15, 2015, at 03:08 , João Varela joaocvar...@gmail.com wrote:
However, none of this happens when the user only scrolls (up or down) a
little and does not reach the top or bottom of the document view. In this
case, not only the -updateTrackingAreas method of the subview is not called,
On Jul 14, 2015, at 12:49 , Rick Mann rm...@latencyzero.com wrote:
What is my module's name, exactly, in an app target?
Go to the build settings for the target, filter on “Module Name” and you’ll see
it.
Note that you can’t enter the module name into the build settings directly. If
you try,
On Jul 13, 2015, at 09:48 , Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
NSApplication.sharedApplication.terminate(self)
Sorry, I meant:
NSApplication.sharedApplication ().terminate(self)
___
Cocoa-dev mailing list
On Jul 13, 2015, at 09:25 , Jan E. Schotsman jesc...@xs4all.nl wrote:
NSApplication.terminate(self) // ! Cannot invoke 'terminate' with an
argument list of type '(AppDelegate)'
You’re mistakenly invoking the method on the class, not on the application
instance. Try:
On Jul 13, 2015, at 16:55 , Charles Srstka cocoa...@charlessoft.com wrote:
What’s the intended use of that, to force an instance to use a superclass’s
implementation of some method instead of the overridden version? If so, that
seems really open to abuse…
I dunno, personally. But it was
On Jul 11, 2015, at 11:51 , Jens Alfke j...@mooseyard.com wrote:
I think William asked how to implement a custom description, not how to print
it.
Roland was pointing out that Swift uses the custom description for string
interpolation, which is the equivalent of using a “%@“ format string
On Jul 9, 2015, at 03:20 , Roland King r...@rols.org wrote:
What I’m trying to do here is extend Array to conform to a protocol. The real
example has constraints on the Element of the Array, so I can’t just extend
Array, I have to use a protocol extension on the protocol (I can’t find a way
701 - 800 of 3195 matches
Mail list logo