onMask (which is a struct, according to the docs)
doesn't have an initializer that takes an Int.
On Jul 12, 2016, at 1:43 PM, Steve Christensen wrote:
> So, (UIInterfaceOrientationMask.Portrait |
> UIInterfaceOrientationMask.LandscapeLeft) doesn't work?
>
>
>> On Jul 12, 201
In iOS 8, I would (in a view controller):
...
override func supportedInterfaceOrientations() -> Int
{
return Int(UIInterfaceOrientationMask.Portrait.rawValue) |
Int(UIInterfaceOrientationMask.LandscapeLeft.rawValue)
}
...
but this no longer works in iOS 9, as the method signature is now:
func s
Normally, of course, models shouldn't know anything about UI, and vice versa,
but what about when the models themselves represent something visual that the
UI needs to draw (like in a drawing/painting program, or - in my case -
GameObject instances that can be objects found in the "dungeon" that
Is it NSASCIIStringEncoding, or UTF8 (or something else)? Is it dependent on
the system locale or language setting? (in my case, locale is US, and language
is US English, with a US keyboard).
Also, do string literals in Swift still respect the '\' escape sequences, like
in C?
When making any iOS application project (Xcode 7.something, on 10.11.5, base
SDK = iOS 9) that uses a UITextField control, I can't get the "return" button
to work.
I've tried attaching an IBAction by Ctrl-dragging from the control to the
.swift file for the view controller, naming the action, a
True, but they'd still have the source .swift file as the compiler would need
this to know what symbols, identifiers, etc... there were, even if they were
marked private. Whereas in ObjC, I can give someone the header and the
framework, and they can't see the internals, and thus be tempted to pr
tters not being able
to modify instance variables) aren't a consideration here.
On Jun 25, 2016, at 1:59 PM, William Squires wrote:
> Let's take the CustomStringConvertible protocol, for example.
>
> You can use this to allow your class to "display" itself in a hu
Let's take the CustomStringConvertible protocol, for example.
You can use this to allow your class to "display" itself in a human-friendly
format (for debugging, let's say), and you implement a function called
description() -> String. But would it make a difference if you have a getter
named de
I would think so - it'd be pretty sh*tty if it did! (though I wonder what
you're going to do with the 20% excess cast-iron?)
On Jan 25, 2016, at 11:53 AM, Dave wrote:
> Hi,
>
> Is the PID of an Application 120% cast-iron guaranteed not to change during
> the Application’s life span?
>
> All
In ObjC, I can have a class implement the description message so I can do:
MyClass *myObj = [[MyClass alloc] init];
NSLog("%@", myObj);
and it will be as if I did:
NSString *aDesc = [myObj description];
NSLog("%@", aDesc);
What's the Swift equivalent?
_
There is (or was) a PDF you could get in the Bookstore.app direct from Apple
vis-a-vis the original Swift (1.0). Has this document been updated (for Swift
2.0) or even a new "changes to Swift" document, or are we waiting for the
"official" release of Xcode 7, and/or a new OS X 10.11 or some such
Oh well, "continue" it is. Though you can still do it manually, if you want! :)
On May 14, 2015, at 11:15 AM, William Squires wrote:
> Not as far as I know; this is one of those times when you're better off doing
> a manual loop with a regular for( ; ; ) {} statement;
or, to put it another way; "optional Optionals, a better " :)
Option 1 (1?):
Have the compiler/linker enforce that all variables are initialized to zero
(Int, Float, Double), false (Bool), empty (String, array, dictionary), or nil
(object reference) if the coder doesn't specify them. (in the c
Not as far as I know; this is one of those times when you're better off doing a
manual loop with a regular for( ; ; ) {} statement; then you can test the loop
iterator with a switch() and take appropriate action (or none at all, if
desired.)
On May 14, 2015, at 11:09 AM, Alex Zavatone wrote:
Thanks, I didn't even think of that, but yeah, it would be easier. Still, I'd
like to know how to properly write a value transformer in Swift.
On May 12, 2015, at 5:38 PM, Quincey Morris
wrote:
> On May 12, 2015, at 14:29 , William Squires wrote:
>>
>> cl
I'm trying to make what should be a fairly simple value transformer. I need to
bind the Enabled state of a control (NSButton in this case, but it could be any
control) to the .isEmpty state of a string. I would think this a common enough
task that an existing value transformer would be supplied,
This is sort of in response to the thread, "Parent/child view controllers: when
shall we use it?".
Since, in both iOS and Mac OS X, a control IS a view, why don't controls have
their own dedicated view controllers? i.e. If I make a new single-view iOS
project, and I put a UILabel in the main vi
IndexPath: then set your target device to iPad air, and
then again to some iPhone (say, 5s, or 6) that has a retina display.
If possible, I'd like someone to try this on an actual iPhone, as well as to
try it on the simulator on an iMac that does have a retina display.
On Apr 28, 2015, at 11
On Apr 28, 2015, at 12:15 PM, Quincey Morris
wrote:
> On Apr 28, 2015, at 09:45 , William Squires wrote:
>>
>> shows 15 rows
>
> You keep saying “shows”, but you don’t say what this means. A table view can
> only “show” as many rows as can fit between its top and bo
Table
//
// Created by William Squires on 4/28/15.
// Copyright (c) 2015 William Squires. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@property NSArray *dwarves;
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad
I made a fairly simple iOS app (Single View template, iPhone, Swift) that has a
UITableView. I've got it all hooked up, and running the project (in the
simulator) shows the table view, but only 13 (out of 20) rows are ever shown.
here's the deal:
ViewController.swift
class
Okay, I still don't get why Swift has this stupid ! and ? syntax. Why not just:
1) Explicitly state that object references must be tested for nil before use
(like C,C++, etc...), or
2) Use the ObjC behavior that sending a message to nil does nothing (unless the
message returns something other th
Is it possible to fire the flash (LED) on my iPhone 5(s) without taking a
photo? (i.e. is there a programmatic interface to turn the LED on/off via an
ObjC message send? Can I talk to it directly using C? Also, does iOS have
OpenCV, or something like it, so the camera can detect flashing light
I'm trying to write a simple demo app and need to know two things:
1) How can I translate the output from the accelerometer into an angular
deflection from the x- or y-axis (if you think of the device as an airplane,
with the cockpit near the FaceTime camera, and the tail near the home button,
I'm trying to convert the following. I have two tables in a database,
"TransactionEntry", and "ReasonCode". A "TransactionEntry" record is just a
posting from a POS (Point-of-Sale) terminal, and has these fields (of interest):
Table (TransactionEntry)
ID As Int32
PrimaryReasonCode As Int32
I'm trying to convert some code that used the old(er) SenTesting framework. Now
I want to use the XCTest stuff. I have the following line:
STAssertEquals(, , NULL); // is just a int-type variable or
constant
I figure the closest is:
XCTAssertEquals, but what does the NULL in the above line do
What would be the best way to make an NSTimer that could pause/un-pause its
timing? Subclassing? Containment? Just roll my own with
performWithSelector:afterDelay:? That is, if I (my code) creates a (smart)
NSTimer with a duration of 5 seconds, then three seconds later I need to pause
the tim
Okay, now that my email works again... :)
I can understand how to code my NSComboBox data source methods (my
NSWindowController subclass is set as both the data source and the delegate),
and the outlets set up as such in IB. The data source methods to implement:
-(NSInteger)numberOfItemsInComb
Okay, clearly I'm still missing something. Let's say I have a model object:
@interface SMPLPlayer : NSObject
...
@property (nonatomic, assign) NSUInteger pcLevel;
...
@end
and now I also have an NSWindowController subclass:
@interface SMPLRollPCWindowController : NSWindowController
...
@proper
Okay, I have several classes in my (somewhat large, and growing) project that
implement the singleton pattern via a [ shared] class
method (and a file-scope static reference) that uses lazy loading to
instantiate the singleton the first time a reference is asked for. Is it
considered better t
Okay, if I create a new NSWindowController subclass (and tell Xcode to
generate the .xib as well), it gives me simple (too simple, I think) template
code, whose init... method takes an NSWindow reference. Where does this come
from (the reference)?
• Is the code instantiating the custom NSWind
On Jun 2, 2014, at 8:38 PM, Laurent Daudelin wrote:
> I have what I think is a simple CoreData question.
>
> Suppose I have an Employee table and a City table, a little bit like the
> CoreData documentation. Each employee resides in a city.
>
> Now, multiple employees can reside in the same c
Why doesn't NSData have a +[NSData dataWithString:(NSString *)] or -[NSData
initWithString:(NSString *)] method? i.e. how do I convert the contents of an
NSString object into an NSData object? Why? Because -[NSFileHandle
writeData:(NSData *)] takes an NSData object, not an NSString object.
Ar
Should I put it in /Library/Application\ Support/ or /Library/Preferences, or
somewhere else?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-
Okay, in non-ARC code, one would override dealloc to put clean-up code (to
release retained objects, close open streams/files, etc...). But where do we
put this in ARC code?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post a
Or, for that matter, any of the lists at lists.apple.com? I'm getting a
mysterious message from system-u...@mms.mycricket.com saying the message (to
this, and other, of the Apple-hosted lists) did not go through, yet I can
clearly see the message got there as the list sends it back and I see i
Is there a way to have the above send the string's contents to stdout instead
of a named file? If not, no biggy, I'll just make another method to output all
the lines (in my NSArray, which I sent the componentsJoinedByString: message to
get the NSString whose output I want to go to stdout), but
If I have an NSString that contains a filename (and possibly a path, as typed
on the command-line), how can I check to see if the specified file actually
exists?
i.e.
...
NSString *inFile = [NSString stringWithUTF8String:argv[1]];
...
let's say, and inFile = @"MyFile.txt".
How can I make sure
Quickie question: Does [NSData getBytes:range:] return .length bytes
into the buffer specified, even if some of the bytes may be '\0' (terminating
null), so long as range is valid? I'm trying to read in a specified record from
a random-access file (record length is 1000 bytes = kRecSize), and I
Thanks, overriding prefersStatusBarHidden did it. :)
On Apr 27, 2014, at 12:10 PM, Quincey Morris
wrote:
> On Apr 27, 2014, at 09:29 , William Squires wrote:
>
>> Thanks - reducing the scene to just the score label reveals that - without
>> the background - the (solid) b
Okay, here's a puzzling one... Here's my init method for the SKScene:
-(id)initWithSize:(CGSize)size
{
ERGPlayer *player = [[ERGPlayer alloc] init];
SKAction *tempAction = nil;
SKAction *waitAction = nil;
if (self = [super initWithSize:size])
{
self.currentBackground = [ERGBackground generate
I'm looking for a way to determine the ambient light level for a program
simulating an electronic circuit involving a solar cell (photovoltaic cell),
where the output voltage will be set based on the measured ambient light level.
It looks like recent iMac and MacBook Pro models have a way to bri
Question: given an SKLabelNode (reference), is there some way to render it, and
turn the rendered image into an SKSpriteNode? I know about [SKSprite
spriteWithImageNamed:], but that takes a filename of an image in the bundle,
not an actual UIImage, and - since one cannot save into the bundle (at
On Mar 18, 2014, at 9:29 PM, Luther Baker wrote:
> On Tue, Mar 18, 2014 at 8:11 PM, Kyle Sluder wrote:
> On Tue, Mar 18, 2014, at 05:30 PM, William Squires wrote:
> > Hi all!
> > Obviously (IIRC) a pure abstract class would map to a formal protocol
> > in ObjC
Hi all!
Some languages (like C++ and Visual C#) allow for partial abstract classes
(i.e. some methods are implemented, while others are left to subclasses to
implement - and, in fact, must implement since the partial abstract class does
not). Is there a way to do this in ObjC?
Is this why NS
Given an object, and a method within, is there some way to get the name of
the class of the object as an NSString?
For that matter, what I want to do is something like this:
Class MyClass
"MyClass.h"
#import
@interface MyClass : NSObject
...
-(void)myMethod;
@end
"MyClass.m"
#import "My
Can an ObjC protocol be inherited by another protocol? I know the syntax for
regular (class) inheritance, and for specifying that a class implements a
protocol, but what's the syntax (if there is one) for one protocol inheriting
from another?
i.e.
I have a protocol, INotSoStiffProtocol that ha
I believe it's because of the virtual on-screen keyboard - this way you can
verify whether the character you typed has uppercase or not, since the virtual
keyboard has no "Caps Lock" LED on it, or just because the iPhone screen
keyboard keys are so small, it's easy to make a typo when entering
Let's say I have a simple class, CParallelogram
"CParallelogram.h"
//
// CParallelogram.h
//
#import
@interface CParallelogram : NSObject
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;
@property (nonatomic, readonly) CGFloat interiorAngle;
@property (nonatomic, read
7;ll do #2. Thanks
for the help!
On Nov 19, 2012, at 12:18 PM, Sean McBride wrote:
> On Sun, 18 Nov 2012 21:26:09 -0600, William Squires said:
>
>> What's the recommended procedure for (unit) testing the initWithCoder:
>> and encodeWithCoder: methods of a class that conform
What's the recommended procedure for (unit) testing the initWithCoder: and
encodeWithCoder: methods of a class that conforms to NSCoding protocol?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator c
Let's say I have:
@interface Thing : NSObject
@property (nonatomic, ???) Thing *nextThing;
@property (nonatomic, ???) Thing *prevThing;
@end
and somewhere I keep a reference to the 'head' of this doubly-linked list. What
should ??? be, "retain", or "assign" in order to work properly? If I was
1) Can CoreData properly manage an object graph where the objects form a
circular reference (i.e.)
Entity Node
int nodeType
Node onTopOf // 1:1 relationship to another Node entity
Node under // another 1:1 relationship
End
This would be a doubly-linked list in a circular queue so that you
I'm surprised it worked at all under any version of OS X, since you set the
current layer to the new layer before committing the transition! Since it sees
the two layers are the same, there's nothing to change, so nothing happens (I
think…)
On Oct 18, 2012, at 10:50 AM, Gabriel Zachmann wrote:
Let's say a company, IMakeGamesCo, has several games in the App Store (iOS). Is
there an API for determining (from one app) if another app from the same
developer is installed? I'm guessing "yes" because I've seen several apps that
can do this; most of them by PocketGems (example: Tap Paradise C
This would be better handled with some sort of filter applied at I/O time (i.e.
when you read/write the file) I would think. That is, let your model objects
handle the translation, and let the view objects do what view objects are
supposed to do. Trying to fiddle around with low-level NSTextStor
Why should sandboxing on MacOS X even be necessary, seeing as we already have
the Unix file permissions (and ACLs) to handle who can/cannot read/write to a
file or directory? The only time I can see needing an entitlement is if you
write low-level stuff (IOKit, kext's, USB drivers, 'fixit' uti
If a class declares an @property that's a reference to one of the collection
classes (or a mutable variant thereof), such as NSArray, NSDictionary, NSSet,
etc… can a key path (for bindings) refer to on object in that collection? If
so, what's the syntax?
Ex: my GameEngine class has an @property
Okay, I think there's a misunderstanding here. In this case - as the writer
of the game engine - I don't know (nor should I care) what the interface to the
model objects is - as long as the developer of said model objects codes the
keys into my game engine, it should be able to manipulate the
On Jul 18, 2012, at 8:16 AM, Marco Tabini wrote:
>
> On 2012-07-18, at 9:08 AM, William Squires wrote:
>
>> Okay, after reading some of the documentation on KVC coding, I understand (I
>> think) that the point is to allow me to specify a property of an object with
>
Oops, the subject should have read "KVC", not "KVG"! :) my bad.
On Jul 18, 2012, at 8:08 AM, William Squires wrote:
> Okay, after reading some of the documentation on KVC coding, I understand (I
> think) that the point is to allow me to specify a property of an object
Okay, after reading some of the documentation on KVC coding, I understand (I
think) that the point is to allow me to specify a property of an object with an
NSString, then set/get that property value using KVC (i.e. valueForKey: or
setValue:forKey:). But it seems like the fact that there's no
I've got 3 classes, ShapeView (NSView subclass), Shape (NSObject) and ShapeTest
(the application delegate).
ShapeView.h
#import
@class Shape;
@interface ShapeView : NSView
@property (nonatomic, retain) NSMutableArray *theShapes;
-(void)addShape:(Shape *)theShape;
@end
ShapeView.m
#import "
This is (one) application of the "wrapper" design pattern - make a class that
wraps (contains) an NSMutableArray, and only expose those properties and
methods you want clients to have access to. This is possible by declaring
public readonly @properties, but redeclaring them in your implementatio
Thanks to Graham Cox, I can now finish this part of my 'simple' project… which
grew and grew! :)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at coc
MacOS X (10.6 base SDK)
On Jul 6, 2012, at 7:13 PM, Alex Zavatone wrote:
> iOS or Mac OS?
>
> On Jul 6, 2012, at 7:55 PM, William Squires wrote:
>
>> Okay, I've got my custom NSView subclass to draw my Shape objects (or
>> subclasses thereof). Each Shape inherit
Okay, I see in the doc set that you can perform an NSAffineTransform on an
NSBezierPath, but how do I perform a rotation of the NSBezierPath about an
arbitrary CGPoint and with a specified angle in radians? Is this something deep
in CoreGraphics, or CoreAnimation? If not, I can do the trigonom
Okay, I've got my custom NSView subclass to draw my Shape objects (or
subclasses thereof). Each Shape inherits or overrides:
-(BOOL)shapeContainsPoint:(CGPoint)thePoint;
Now, I want to detect clicks within the view and iterate over all the objects
the view is responsible for, and send them
Here's my class graph:
Shape (base class - inherits only from NSObject)
LineShape : Shape
RectangleShape : Shape
SquareShape : RectangleShape
In RectangleShape, I define:
@property (nonatomic, assign) CGSize rectSize;
@property (nonatomic, readonly) CGFloat area;
@property (nonatomic, readonly)
Not sure if this would be helpful, but maybe a custom NSCell subclass that acts
like a color well?
On Jun 7, 2012, at 10:32 AM, Sean McBride wrote:
> On Thu, 7 Jun 2012 13:53:49 +0100, H. Miersch said:
>
>> In my Mac app I have a table view which so far only displays text and
>> numbers. Now I'
I know iOS will give your app the didReceiveMemoryWarning:, but what about if
you try to use all the available space? (i.e. your iDevice is stuffed with
music, videos, apps, photos, and so on) Should the app just catch an
NSException?
What's the Apple recommended way of playing nice w/regard
Okay, here's what I'd like to do:
1) Have a Mail.app rule fire an applescript when an email triggers the rule.
2) Grab the "subject:" line and the "to:" line from the email, and send that to
another program which I'll write
What's the best way for an applescript to send the info to my ObjC p
1) When in doubt, use C4! (actually, plain old dynamite should work just fine!)
2) Shoot the (idiot) developer of the C++ code for doing that (may result in
serious jail time...)
3) Fuggedabouddit!
4) Wait for ObjC 3.0 and hope it has a feature to isolate badly written (or
named) code in a namesp
I'm trying to develop my "retro" CRPG game engine as a console app, but how do
I test the input part? I can output to stdio with either printf() or NSLog, but
the debug console only supports output, not input. What's the normal way to
redirect this to terminal.app so that scanf() will work?
_
Just curious... :)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
htt
On Mar 16, 2012, at 4:00 PM, Brian Lambert wrote:
> I’ve been developing iOS applications full-time for about 6 months now and
> I love it. I feel pretty strong on the platform now.
>
> I have a lingering question about something that’s really been bugging the
> heck out of me, though, that I th
A recent email from xamarin to me ('cause i bought their MonoTouch thingy)
recently notified me that a change in 5.1 means developers can no longer write
to console. And some other blah, blah, blah...
On Mar 13, 2012, at 7:37 PM, Jonas Maebe wrote:
>
> On 13 Mar 2012, at 23:08, Jens Alfke wrot
I just do a #define in the header like
#define kDictionayKey1 @"key1"
#define kDictionaryKey2 @"key2"
then use it somewhere in the .m file
foo = [myDic objectForKey:kDictionaryKey1];
and so on...
On Mar 8, 2012, at 6:29 PM, Prime Coderama wrote:
> I have references to 'ground' and 'air' in mu
"if (a = b)" or some such. IIRC, it's near the
bottom of the compiler warnings that you can check off, but it's getting late
at night...
On Feb 26, 2012, at 7:40 PM, Graham Cox wrote:
>
> On 27/02/2012, at 12:13 PM, William Squires wrote:
>
>> I prefer the &
It's easy enough on an NSTextField (whether it's set up as a static label, or
as a data-entry-type field), but where's the .text property of an NSTextArea?
Also, what would be the easiest way to implement a view that showed a memory
dump? i.e.
:hh hh hh hh hh hh hh hh <- ASCI
This is one of those things that comes from the C background - any non-zero
value is true; thus the two statements are equivalent. I prefer the "if (self =
[super init])" combined form, myself.
On Feb 24, 2012, at 8:50 AM, Oleg Krupnov wrote:
> An interesting question. The following samples a
On Feb 24, 2012, at 5:53 AM, Joshua Tidsbury wrote:
> On 2012-02-23, at 9:44 PM, William Squires wrote:
>
>> Ever since the first release of iOS (then called iPhone OS), the UISwitch
>> has really bothered me:
>>
>> 1) It takes up too much valuable screen real-e
On Feb 23, 2012, at 2:13 PM, Seth Willits wrote:
> On Feb 23, 2012, at 6:16 AM, William Squires wrote:
>
>> From what I've read, the NSStepper has a bug (though practically, you'll
>> never see it); if one were to click the up or down arrow on the control 2^32
>
Ever since the first release of iOS (then called iPhone OS), the UISwitch has
really bothered me:
1) It takes up too much valuable screen real-estate compared with a checkbox
2) The "On/Off" text can't even be customized - the checkbox NSButton in Mac OS
X at least allows you to change its capti
That's what I was looking for - now, back to my project... tomorrow! :)
On Feb 23, 2012, at 2:04 PM, Seth Willits wrote:
> On Feb 23, 2012, at 5:58 AM, William Squires wrote:
>
>> I have a custom view with an NSBox containing an NSMatrix of button cells
>> (radio butt
>From what I've read, the NSStepper has a bug (though practically, you'll never
>see it); if one were to click the up or down arrow on the control 2^32 times
>(assuming it's value is a 4-byte signed int,and is initialized to 0), it would
>wrap around (or raise an exception for integer overflow).
I have a custom view with an NSBox containing an NSMatrix of button cells
(radio buttons) When I created the NSMatrix, I told it I wanted 3 of them, but
in the view hierarchy, I can see the NSMatrix under the NSBox, but it has 4
button cells under it, not the three I asked for - Is this an Xco
Okay, 'nuther dumb question. How do I hook the different arrows in an NSStepper
to actions in my view controller? Or how do I ask (id)sender which arrow was
clicked?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin req
Okay, sort of simple situation. I have a custom NSView which contains an
NSSlider, an NSTableView, and an NSTextField (a label). The model info is in
the custom view's view controller and has:
"GraphTableViewController.h"
@interface GraphTableViewController : NSViewController
@property (ass
Does this method store the context state in a stack, or just store it in a
local variable (struct) somewhere (i.e. does calling this more than once
overwrite the previously saved context info?)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
In my sample project, I've got
TestView.h
TestView.m
RBTestView.h
RBTestView.m
AppDelegate.h
AppDelegate.m
ViewController.h
ViewController.m
ViewController.xib
AppDelegate loads the view controller and it's xib - confirmed, as the
drawRect: method in TestView does its thing (ViewController.xib's
is ARC a Lion-only feature or will an ARC-compiled app work on 10.6.8 assuming
no other Lion features are used?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mo
What about performSelector:withObject:afterDelay: with a delay of 0.0, I
believe, will perform the selector after the current iteration of the run loop.
Not sure about thread safety, though.
On Oct 13, 2011, at 10:17 PM, Steve Steinitz wrote:
> Hi Richard,
>
> The advice you've received alread
Sounds like you're inadvertently depending on the order of loading somehow. Are
you setting up all your bindings in awakeFromNib:? Or do you have any bindings
(set in IB) which refer to something the controller object may have to load
first? Just a thought.
On Oct 3, 2011, at 8:29 PM, Seth Will
Hi,
I have a need for a complex data-entry form (window). Some fields are
supposed to only accept alpha characters (upper or lower), some are supposed to
only take integers, others to only take floats (but no negative values
allowed). Is there a general way of validating the contents of a fiel
Thanks!
On Sep 5, 2011, at 11:07 AM, Ken Thomases wrote:
> On Sep 5, 2011, at 10:32 AM, William Squires wrote:
>
>> While I can create the UI easily enough in IB, what I don't understand is
>> how to actually load, instantiate, and display the window from my view
>&
Okay, I'm having a tizzy here. Most of the '...learn MacOS X...' programming
books gloss over the nitty-gritty of actually creating and displaying various
windows, either assuming they're going to be document windows (as part of a
document-based app), or they're just there as part of an example
I would check 2 things:
1) Is there anything in the view controller that's maintaining a persistent
boolean state that toggles each time its awakeFromNib is called?
2) Does it do the same thing when you deploy to an actual iPad?
On Aug 19, 2011, at 3:20 PM, Rick Mann wrote:
> One of my colleagu
Oops, my typo: of course I meant to type
'AVPlayerDemoPlaybackViewControllerRateObservationContext'... a 'N' got in
there somehow! :)
On Aug 11, 2011, at 9:18 PM, William Squires wrote:
> It's a (pointer) variable whose contents is its own memory address (the &
On Aug 11, 2011, at 6:51 PM, Kyle Sluder wrote:
> On Thu, Aug 11, 2011 at 4:26 PM, Jens Alfke wrote:
>>
>> On Aug 11, 2011, at 4:10 PM, Luther Baker wrote:
>>
>>> static void *AVPlayerDemoPlaybackViewControllerRateObservationContext = &
>>> AVPlayerDemoPlaybackViewControllerRateObservationCont
1 - 100 of 192 matches
Mail list logo