On 12 Aug 2014, at 00:41, Keary Suska cocoa-...@esoteritech.com wrote:
On Aug 11, 2014, at 2:52 PM, Dave d...@looktowindward.com wrote:
On 10 Aug 2014, at 16:16, Keary Suska cocoa-...@esoteritech.com wrote:
I don't think so, although I would expect a C lib somewhere to address it.
At runtime I do:
// 10.8.x or earlier needsSpecialTreatment
BOOLneedsSpecialTreatment = floor(NSFoundationVersionNumber) =
NSFoundationVersionNumber10_8;
But how to do it at compile time?
Like:
#if BEFORE_10_10 -- what to write here?
NSString *infoPlistKey =
On Aug 12, 2014, at 02:44:000, Gerriet M. Denkmann wrote:
At runtime I do:
// 10.8.x or earlier needsSpecialTreatment
BOOL needsSpecialTreatment = floor(NSFoundationVersionNumber) =
NSFoundationVersionNumber10_8;
But how to do it at compile time?
Like:
#if BEFORE_10_10 -- what to
On 12 Aug 2014, at 17:20, Manoah F. Adams mhfad...@federaladamsfamily.com
wrote:
On Aug 12, 2014, at 02:44:000, Gerriet M. Denkmann wrote:
At runtime I do:
// 10.8.x or earlier needsSpecialTreatment
BOOL needsSpecialTreatment = floor(NSFoundationVersionNumber) =
Hi all,
I am trying to implement a popup menu in an NSTableView column. I seem to have
the bindings all set up so that the values in my NSArray are updated according
to the options the user selects in the table. However, I would like to have
some way of accessing the tag on the menu item that
Is there a sure-fire way to know when it is necessary to call super in an
override?
Sample code shows that calling super is necessary for methods such as
-(id)init
- (void)windowControllerDidLoadNib
but not for
(NSData *)dataOfType
(BOOL)readFromData
How can you know for sure?
This
Is there a sure-fire way, no. It’s usually fairly clear however. Normally you
call super if you override a method unless it tells you not to in the
documentation or you are clearly trying to make something NOT do what the
superclass did. I suppose my handwaving rule is if a method ‘does’
On Aug 12, 2014, at 1:42 AM, Dave d...@looktowindward.com wrote:
Maybe my brain isn't working correctly but that doesn't make sense to me.
Could you show the output with both x and y shown? Now, you aren't dividing
by a negative integer, are you? I believe that is undefined…
Yes, it's my
On Aug 12, 2014, at 6:14 AM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk
wrote:
I am trying to implement a popup menu in an NSTableView column. I seem to
have the bindings all set up so that the values in my NSArray are updated
according to the options the user selects in the table.
My question then is how should I access the tags in the popup menu in order
to work out which tag corresponds to the selected item in each row?
If I understand your setup correctly, the most direct route is to set an
action on each menu item.
Ah ok, I've revisited that and got it to
On Sat, 9 Aug 2014 07:53:57 +0100, Jonathan Mitchell said:
Does NSPointerArray support zeroing weak references under ARC?
Yes as of 10.8, see the Foundation Release notes:
https://developer.apple.com/library/mac/releasenotes/Foundation/RN-FoundationOlderNotes/
Cheers,
--
On 12 Aug 2014, at 15:01, Keary Suska cocoa-...@esoteritech.com wrote:
On Aug 12, 2014, at 1:42 AM, Dave d...@looktowindward.com wrote:
Maybe my brain isn't working correctly but that doesn't make sense to me.
Could you show the output with both x and y shown? Now, you aren't dividing
On Aug 12, 2014, at 10:01 AM, Dave d...@looktowindward.com wrote:
I’m not sure what you mean by dividing by a negative number is undefined?
It sure as hell better be defined, hadn't it? We wouldn't want a language where
the basic math ops were that foobar'd!
Now in KR C, the direction of
On 12 Aug 2014, at 17:11, Scott Ribe scott_r...@elevated-dev.com wrote:
On Aug 12, 2014, at 10:01 AM, Dave d...@looktowindward.com wrote:
I’m not sure what you mean by dividing by a negative number is undefined?
It sure as hell better be defined, hadn't it? We wouldn't want a language
On Tue, 12 Aug 2014 07:15:16 +0800, Roland King said:
In order to be sandboxed at all an app must be signed. An unsigned
sandboxed app just isn’t sandboxed. A Mac App or Developer ID cert is
good for that. (used to be you could self-sign them but I think that
must have gone away long since).
In ObjC I used to do:
CommonDefines.h
#define PARAMETER_A 17
and then import CommonDefines.h into all files which have to know this
parameter.
But how do I make a Swift file and an ObjC file both aware of the value of
PARAMETER_A?
Keeping both in sync is rather error prone; I much
Gerriet,
You should be able to make a constant variable, not a preprocessor
definition, and import the file that declares it in your project’s bridging
header. Something like this:
in Constants.h:
extern const NSInteger kParameterA;
in Constants.m:
const NSInteger kParameterA = 17;
Then, in
Hi all -
Does anyone know if there's yet a way to make test accounts that can generate
the new deferred purchase state in iOS 8?
Thanks!!
.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator
On 13 Aug 2014, at 00:52, Jeff Kelley slauncha...@gmail.com wrote:
Gerriet,
You should be able to make a constant variable, not a preprocessor
definition, and import the file that declares it in your project’s bridging
header. Something like this:
in Constants.h:
extern const
Except the compiler cannot treat them as constants for optimization.
Paul
On Aug 12, 2014, at 10:57 AM, Gerriet M. Denkmann gerr...@mdenkmann.de
wrote:
On 13 Aug 2014, at 00:52, Jeff Kelley slauncha...@gmail.com wrote:
Gerriet,
You should be able to make a constant variable,
At 3:24 PM -0600 8/11/14, Scott Ribe wrote:
On Aug 11, 2014, at 3:03 PM, Dave d...@looktowindward.com wrote:
The first edition of KR mistakenly referred to it as modulus
(apparently based on the PDP-11 instruction which was similarly
misnamed).
When in doubt, remember what C was designed to
My question then is how should I access the tags in the popup menu in order
to work out which tag corresponds to the selected item in each row?
If I understand your setup correctly, the most direct route is to set an
action on each menu item.
Ah ok, I've revisited that and got it to
On Tue, 12 Aug 2014 16:44:50 +0700, Gerriet M. Denkmann said:
At runtime I do:
// 10.8.x or earlier needsSpecialTreatment
BOOL needsSpecialTreatment = floor(NSFoundationVersionNumber) =
NSFoundationVersionNumber10_8;
But how to do it at compile time?
Like:
#if BEFORE_10_10 -- what to
On Tue, 12 Aug 2014 13:02:54 +, McLaughlin, Michael P. said:
Is there a sure-fire way to know when it is necessary to call super in
an override?
Checking the docs is best, but sometimes the compiler will warn you if you fail
to call super, if the method was tagged with NS_REQUIRES_SUPER.
You can use an enum. The compiler treats them as constant and they are
available both in Obj-C and Swift.
Le 12 août 2014 à 20:04, Paul Scott psc...@skycoast.us a écrit :
Except the compiler cannot treat them as constants for optimization.
Paul
On Aug 12, 2014, at 10:57 AM, Gerriet M.
Hi. Is the timeout (the one that kills your app if the main run loop blocks for
too long) longer during app startup than after it's running? I'm concerned
about the Core Data migration my app does at startup. I will eventually move it
to work on a background thread, but I'd like to punt that to
On Tue, Aug 12, 2014, at 04:00 PM, Rick Mann wrote:
Hi. Is the timeout (the one that kills your app if the main run loop
blocks for too long) longer during app startup than after it's running?
I'm concerned about the Core Data migration my app does at startup. I
will eventually move it to work
I'd like to get a black-background, white-text status bar across my app. But I
can't seem to figure out how. I set the Info.plist property for it, and set it
to not be controlled by view controllers, but it's always a completely
transparent background.
What am I missing? Thanks!
--
Rick Mann
On Aug 12, 2014, at 15:12 , Kyle Sluder k...@ksluder.com wrote:
On Tue, Aug 12, 2014, at 04:00 PM, Rick Mann wrote:
Hi. Is the timeout (the one that kills your app if the main run loop
blocks for too long) longer during app startup than after it's running?
I'm concerned about the Core Data
On Tue, Aug 12, 2014, at 06:19 PM, Rick Mann wrote:
I'd like to get a black-background, white-text status bar across my app.
There is no such thing in iOS 7.
https://developer.apple.com/Library/ios/documentation/UserExperience/Conceptual/TransitionGuide/Bars.html
--Kyle Sluder
On Tue, Aug 12, 2014, at 06:24 PM, Rick Mann wrote:
On Aug 12, 2014, at 15:12 , Kyle Sluder k...@ksluder.com wrote:
On Tue, Aug 12, 2014, at 04:00 PM, Rick Mann wrote:
Hi. Is the timeout (the one that kills your app if the main run loop
blocks for too long) longer during app startup
In most cases, migration is very fast, and therefore not a problem. I'm trying
to gauge how big a data set I can migrate before it becomes a problem. So, an
answer to my actual question would be helpful. I don't care that it may change
in the future, I'd like to know what it is now.
On Aug 12,
Thanks for reminding me of that. I knew this was the case, but I'm fighting a
designer who wants the black background. He threw the Facebook iPad app at me,
showing that it puts up a black status bar when the side drawer is opened.
I'll just point him at this link. The app looks pretty good
You could always throw an opaque UIView behind it. I did that same effect with
a UIToolbar in iOS 7 for a blurred effect. hacky
- Cody
On Aug 12, 2014, at 4:34 PM, Rick Mann rm...@latencyzero.com wrote:
Thanks for reminding me of that. I knew this was the case, but I'm fighting a
designer
Yeah, that's what I wanted to make sure I had to do. I agree it's hacky, and I
think this app can survive without it.
Thanks,
Rick
On Aug 12, 2014, at 16:41 , Cody Garvin c...@servalsoft.com wrote:
You could always throw an opaque UIView behind it. I did that same effect
with a UIToolbar in
On 13 Aug 2014, at 00:31, Rick Mann rm...@latencyzero.com wrote:
In most cases, migration is very fast, and therefore not a problem. I'm
trying to gauge how big a data set I can migrate before it becomes a problem.
So, an answer to my actual question would be helpful. I don't care that it
Sigh. It really doesn't. It's NOT folly. All the devices we support are very
similar to each other.
On Aug 12, 2014, at 16:49 , Marc Palmer m...@anyware.co.uk wrote:
On 13 Aug 2014, at 00:31, Rick Mann rm...@latencyzero.com wrote:
In most cases, migration is very fast, and therefore not a
On Tue, Aug 12, 2014, at 06:52 PM, Rick Mann wrote:
Sigh. It really doesn't. It's NOT folly. All the devices we support are
very similar to each other.
Folly or not (and I think that it is), your question is unanswerable.
It's not documented. You can't rely on it being any particular value.
I'm getting exception reports from users of an application I'm working on that
I cannot reproduce. The exception comes from the NSSpellChecker instance, and
the trace looks something like this:
NSObjectInaccessibleException
NSDistantObject (0x62279bc0) is invalid (no connection)
NSSpellChecker uses DO to connect with the spellchecker process. It properly
handles any exceptions that may result, so these exceptions would be caught and
handled and you do not need to be reporting them.
Douglas Davidson
On Aug 12, 2014, at 5:22 PM, Dragan Milić mi...@mac.com wrote:
I'm
On Aug 12, 2014, at 12:14 PM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk
wrote:
My question then is how should I access the tags in the popup menu in
order to work out which tag corresponds to the selected item in each row?
If I understand your setup correctly, the most direct route is
On Aug 12, 2014, at 10:17 AM, Dave d...@looktowindward.com wrote:
On 12 Aug 2014, at 17:11, Scott Ribe scott_r...@elevated-dev.com wrote:
On Aug 12, 2014, at 10:01 AM, Dave d...@looktowindward.com wrote:
I’m not sure what you mean by dividing by a negative number is undefined?
It
On sre 13.08.2014., at 02.30, Douglas Davidson wrote:
NSSpellChecker uses DO to connect with the spellchecker process. It properly
handles any exceptions that may result, so these exceptions would be caught
and handled and you do not need to be reporting them.
Thanks, so they can be safely
43 matches
Mail list logo