I'm modifying a Mac app based in part on Apple's CoreWLANWirelessManager sample
code. I'm trying to build it under 10.8 and I find that everything related to
CW8021XProfile has been deprecated! The docs don't give a hint of what's
replaced it. What's the new paradigm?
___
Yep, specifying a delegate and implementing -viewForZoomingInScrollView: did
the trick! (As a newb, I thought this functionality was innate in UIImageView,
but...)
Thanks to everyone for your help!
From: Julius Oklamcak
To: 'Jon Sigman'
Cc: &
I just added this:
[scrollView setContentSize:CGSizeMake(128.0,96.0)];
Now I can move the image about within the UIScrollView, but I can't pinch/zoom
it.
From: Eric E. Dolecki
To: Jon Sigman
Cc: Fritz Anderson ; Cocoa- Dev List
Sent: Tuesday, Ja
:@"default.png"]];
[scrollView addSubview:imageView];
return;
}
The UIScrollView & UIImageView show up on the GUI, with the correct image, but
gestures are ignored. What am I overlooking?
From: Fritz Anderson
To: Jon Sigman
Cc: Cocoa- Dev L
I have an iOS iPad app that uses a full screen UIImageView to display some png
images. However, this arrangement doesn't allow the user to pinch-zoom the
image. It seems to ignore gestures. I've tried embedding the UIImageView within
a UIScrollView from IB (using Embed Object in Scroll View), an
res). You should be
working for Apple's documentation team! ;-)
On Oct 14, 2011, at 8:59 AM, Jon Sigman wrote:
On Oct 13, 2011, at 8:02 AM, Fritz Anderson wrote:
>
>
>
>>My understanding is this, a diagram I made to visualize the process,
>>
>>http://drowland.net/iOS%
On Oct 13, 2011, at 8:02 AM, Fritz Anderson wrote:
>My understanding is this, a diagram I made to visualize the process,
>
>http://drowland.net/iOS%20Class/View%20Controller%20unloading.pdf
Wow, that's awesome. I never understood viewController unloading before. I wish
the Apple documentation
-only dense matrix). Still, this
should work out, since after the initial mmap load, it's quite speedy.
From: Scott Ribe
To: Steve Sisak
Cc: Jon Sigman ; list-cocoa-dev
Sent: Tuesday, September 13, 2011 2:55 PM
Subject: Re: Task dispatching
On Sep 13, 2011,
I quickly wrote up a little program to test out mmap()'ing one of the 1GB
files. It works, no kernel changes needed, and it only takes 0.871 secs!
(51.209 secs if Time Machine is running ;) So, I'm stunned that this would be
so much faster than using individual fread() calls for each element. (
__________
From: Scott Ribe
To: Jon Sigman
Cc: Cocoa- Dev List
Sent: Tuesday, September 13, 2011 10:30 AM
Subject: Re: Task dispatching
On Sep 13, 2011, at 11:11 AM, Jon Sigman wrote:
> Startup involves loading a >1GB data matrix from disk into memory.
> Transformations are
ting a "server" in Cocoa?
________
From: Scott Ribe
To: Jon Sigman
Cc: Cocoa- Dev List
Sent: Tuesday, September 13, 2011 9:55 AM
Subject: Re: Task dispatching
On Sep 13, 2011, at 10:42 AM, Jon Sigman wrote:
> Design-wise, should I have a lightweight front-en
I have a Cocoa/Foundation application running in the background that receives a
1MB block of data, processes it, and sends back a new 1MB block of data using
TCP/IP over the internet. The program takes a couple of minutes to come up and
initialize, so it needs to be up and stay up waiting for pr
Many thanks to all who responded.
Somehow I didn't notice the attributes methods of NSFileManager.
I've got it working!
-Jon
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
C
How does one determine the size of a file on disk using Cocoa?
I've looked at NSFileManager but it doesn't seem to offer any
methods for finding file attributes.
OSX 10.6.8
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post adm
Thanks Peter, Dave, Roger. These are all good approaches!
From: Roger Dalal
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Fri, April 29, 2011 4:41:36 PM
Subject: Re: Changing UISwitch text
Jon:
UISwitch can not be customized. This question was asked a
Is there a straightforward way to change the text on the UISwitch ("ON" and
"OFF") to something else? Alternatively, is there a way for a UIButton to act
like a toggle (it stays highlighted until touched again)?
iOS 4.3
___
Cocoa-dev mailing list (Coco
Thanks, David. I do recall that now. Need more coffee...
From: David Duncan
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Tue, April 19, 2011 11:01:40 AM
Subject: Re: warning: cast from pointer to integer of different size
%p
On Apr 19, 2011, at 10:50 AM
Basic question: Just for debugging purposes, I'm trying to print out the
address
of a pointer to a struct, but I can't figure out the proper way to do it (ie,
satisfy the compiler warnings). OSX 10.6.7, Xcode 3.2.6
dispatch_source_t our_gcd_source;
. . .
printf("gcd_source: %08X\n",
Yes, that works splendidly!
Thanks, David!
From: David Duncan
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Fri, April 15, 2011 11:54:36 AM
Subject: Re: Injecting text into a CALayer?
Using a sublayer for this purpose is I think the best solution for
object? Or does
CAShapeLayer have that capability?
From: David Duncan
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Fri, April 15, 2011 11:42:49 AM
Subject: Re: Injecting text into a CALayer?
On Apr 15, 2011, at 11:11 AM, Jon Sigman wrote:
> In iOS 4
In iOS 4.3, I have an app that uses CALayers to draw small circles on the
screen
like so:
CALayer *_layer = [[CALayer alloc] init];
[_layer setDelegate:self];
[_layer setBounds:CGRectMake( 0,0,100,100 )];
[_layer setNeedsDisplay];
Is there a way I can draw text into the circle regions?
Thanks, Luke. Somehow I was thinking that was a read-only property ("selected"
=
past tense). My bad.
From: Luke the Hiesterman
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Mon, March 21, 2011 6:53:58 PM
Subject: Re: UISegmen
iOS 4.3. I'm using a UISegmentedControl and want to preselect one of the
segments in -viewDidLoad based on the last user setting stored in defaults.
But,
I can't find a -selectSegmentAtIndex: method or a reasonable facsimile. How can
I go about doing this?
Matt, you are quite correct. It helps to simplify the case, and then build on
that foundation. I had too many things going on and couldn't see the forest for
the trees.
Thanks!
From: Matt Neuburg
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Mon,
On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote:
> The "Return" key invokes textFieldShouldReturn: and does *not* automatically
>resign first responder ...
Ah! That is the part I had been overlooking. textFieldShouldReturn is the
perfect place to validate the input.
However, now that I've
On Sat, 05 Mar 2011 11:22:46 -0800 Matt Neuburg wrote:
> One possible approach on iOS is to implement textFieldShouldEndEditing, and
>return NO and put up an alert if there's a problem. Another is just to make
>the
>change yourself in textFieldDidEndEditing. See the section entitled
>"Validatin
Okay, part II:
Is there a way to allow only a certain number of characters in a UITextField?
Should this be done in the -textFieldDidEndEditing delegate callback, with an
alert to the user, or just truncating the field, or ...?
-Jon
___
Coc
On Thu, March 3, 2011 2:19:30 PM Phillip Mills wrote:
> First question: Is your 'nameTextField' truly non-nil when you set its
>delegate?
Good call. It was being set before the -viewDidLoad method got invoked. It all
works now!
> Second question: What do you define as "finished editing"?
Wh
I'm trying to set up a delegate on a UITextField so I can know when the user
has
finished editing.
My delegate is my main view controller:
@interface MainViewController : UIViewController
{
. . .
}
and in the implementation file I have:
- (void) textFieldDidEndEditing:(UITextField)textField
That's awesome. I never knew you could do that. Works great! Thanks Conrad and
Laurent!
From: Conrad Shultz
To: Laurent Daudelin
Cc: Jon Sigman ; cocoa-dev@lists.apple.com
Sent: Tue, February 22, 2011 1:06:40 PM
Subject: Re: iOS: Calling up numeric k
I have a UITextField that should accept only numerics. Is there a way to set
the
textfield so that when the user touches it, the numeric keypad comes up instead
of the alpha keypad? iOS 4.2.1
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.
On Feb 14, 2011, at 5:41 PM, Seth Willits wrote:
>On Feb 14, 2011, at 4:57 PM, Jon Sigman wrote:
>> I did a search of the docs but didn't find this question addressed...
>> During the object instantiation phase of app startup, is every -awakeFromNib
>> method guar
I did a search of the docs but didn't find this question addressed...
During the object instantiation phase of app startup, is every -awakeFromNib
method guaranteed to be called on the app's main thread?
___
Cocoa-dev mailing list (Cocoa-dev@li
The underlying issue I was having was how to know when different objects used
as
keys might be reasonably expected to match, especially if they weren't
generated
the same way (as with [NSNumber stringValue] and [NSString ...]).
I guess the long answer is "its complicated", and the short answer
On Jan 6, 2011, at 1:24 PM, David Duncan wrote:
> The short of it is that its a value that allows you to quickly tell if
>something is worth looking at more closely for equality. As a real world
>example
>a hash code is equivalent to saying "this object is short, this object is
>tall"
>witho
From: Nick Zitzmann
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Thu, January 6, 2011 1:04:47 PM
Subject: Re: NSDictionary key types
On Jan 6, 2011, at 1:04 PM, Nick Zitzmann wrote:
>On Jan 6, 2011, at 2:03 PM, Jon Sigman wrote:
>> Is this
On Jan 6, 2011, at 1:50 PM, Nick Zitzmann wrote:
> So are the following two equivalent?
>
> id myKey = [NSNumber numberWithInt:8760];
> if (myObj = [myDict objectForKey:myKey]) {
> . . . do something
> }
>
> and
>
> id myKey = @"8760";
> if (myObj = [myDict objectForKey:myKey])
_
From: Nick Zitzmann
To: Jon Sigman
Cc: cocoa-dev@lists.apple.com
Sent: Thu, January 6, 2011 12:40:00 PM
Subject: Re: NSDictionary key types
On Jan 6, 2011, at 1:10 PM, Jon Sigman wrote:
> I'm a bit new to Cocoa, and I'm trying to get my head around NSDictionary. In
> the A
I'm a bit new to Cocoa, and I'm trying to get my head around NSDictionary. In
the Apple documentation it says, "Each entry consists of one object that
represents the key and a second object that is the key's value. ... In general,
a key can be any object, but note that when using key-value codin
I have a Cocoa app that uses a dedicated thread to receive messages, and I
would
like that thread to post those messages as notifications so they can be
processed asynchronously, outside my receiving loop (but not on the main
thread).
Looking at NSNotificationQueue, I'm totally confused by it.
So instead of having struct arrays, etc, I replace all that with a custom
object, an instance of which represents each process, and manage them by
associating them with different state collections as appropriate.
Thanks, I think that's doable.
_
How does one track state in Cocoa?
I have a message receiver which manages a number of TCP-connected processes
(100
or so). However, I need to keep track of the state of each connected process
(registered, busy, waiting, etc) to know what operations are 'legal' or
appropriate for dealing with
It sounds like Foundation is the safer way to go, especially to safeguard
future
functionality expansion. I take it Foundation does not contain Core Foundation,
but at least they're not mutually exclusive? If I go Foundation, I can include
Core Foundation as well, should I want something in it,
I'm new to OSX/Cocoa, coming from Solaris. I'm porting the functionality of a
Solaris connection server to Mac OS X. "Porting" isn't exactly the right word
since I'm taking the liberty to use Cocoa and whatever else OSX offers to get
things working well, including rearchitecting.
Before I start
> On Nov 23, 2010, at 2:25 PM, k...@highrolls.net wrote:
> If the app is purchased will it expire as well on a user device?
Of course not. The expiry date is only for development devices. It will work
indefinitely on a user's device.
___
Coc
Yeah, UIToolbars are odd beasts. Try this out: place a UISwitch in a toolbar,
hook it up to an IBAction, and you get... nothing. It switches from ON to OFF
and back, but the action never fires. Bug? Feature? Not exactly 'standard and
easy' imho. Maybe the 'next major release' will address this.
I struggled this too, but without solution. It seems that toolbar 'buttons'
aren't real buttons -- they're class UIBarButtonItem from UIBarItem from
NSObject. Since they're not really buttons, there doesn't appear any way to
modify their behavior. If there is a way, I'd like to know, too...
47 matches
Mail list logo