Hi,
I want a generic animated split view. So I had a rummage online, and couldn't
find anyone who had prepared the wheel for me. Consequently I set out to create
my own. I soon found that overriding setPosition:ofDividerAtIndex: and make it
work correctly for split views with more than two vie
Hi,
I am planning to use the NSUserDefaultsController and KVO in Application
preferences implementation as a separate framework.
Question is: My application has many frameworks and Plugins and has to
observe the Preferences values change ( NSUserDefaultsController will have
Key-Value pairs). Is
Thanks Steve. For completeness - what's the proper way to perform the
cleanup? Should another static method be created that releases the singleton
instance when the app is closed? i.e.
+ (void)releaseSharedInterface
{
[sharedInstance release];
sharedInsance = nil;
}
D
On 1 June
On Tue, 31 May 2011 21:50:17 -0700, Tito Ciuro said:
>I wish Xcode 4 had warned me that 'be
>ginSheetForDirectory:file:types:modal
>ForWindow:modalDelegate:didEndSelector:contextInfo:' has been deprecated
>in 10.6. That would have saved some trouble!
It's not exactly deprecated. In the .h it say
Why do you need to do any explicit cleanup on app termination? App memory
disappears (poof!) so it's not like you're leaking anything. Is your class
holding onto some state that must be written out to disk, for example?
On Jun 1, 2011, at 3:54 AM, Dan Hopwood wrote:
> Thanks Steve. For complet
I've been taking advantage of the fact that UIView's don't clip to their bounds
by making my superview of size CGSizeZero and adding content to it. This means
I can position the whole view hierarchy using its center, which is always at
(0,0). This is very useful as my view has subviews which mov
K&R says to declare and initialize an array in C:
int myArray[2] = {1,2};
If the above is entered into the .h file of a cocoa project, the compile will
fail with the following:
/Users/jimrogers_w4atk/Development/workspace/ArrayTest/ArrayTestAppDelegate.h:14:0
/Users/jimrogers
On 02/06/2011, at 1:12 AM, JAMES ROGERS wrote:
> K&R says to declare and initialize an array in C:
>
> int myArray[2] = {1,2};
>
> If the above is entered into the .h file
That's because a .h file is the HEADER.
You need to put this in the BODY, which is the .c (pure C) or .m (Obj-C) f
>> K&R says to declare and initialize an array in C:
>>
>> int myArray[2] = {1,2};
>>
>> If the above is entered into the .h file
>
>
> That's because a .h file is the HEADER.
>
> You need to put this in the BODY, which is the .c (pure C) or .m (Obj-C)
> file. The reason is that the = {1
On May 30, 2011, at 7:51 AM, Nava Carmon wrote:
> Actually the client is supposed to get a text from the mail message when the
> user clicks send. This client is not a mail client and not is supposed to
> send mail.
> Is there some programmatic solution?
Mail doesn’t inform other applications
On May 30, 2011, at 9:55 AM, Ken Thomases wrote:
> I'm guessing that whatever method vended the string didn't do so with the
> bycopy qualifier. Therefore, you have a proxy of the string object and any
> messages you send it require communication with the server.
It definitely sounds like a p
Probably fundamental but I haven't got my head straight on this.
Xcode 4.0.2
OS X 10.6.7
I have an app that is a single window that I load NSView elements over the
course of the life of the app.
I want to set the first responder for the window to be a text field in the
NSView after the view i
Are you just trying to prevent the user from sending mail? There are much
better alternatives, up to and including removing Mail.app from the
/Applications folder.
Jeff Kelley
On Mon, May 30, 2011 at 10:51 AM, Nava Carmon wrote:
> Actually the client is supposed to get a text from the mail mes
On 1 Jun 2011, at 8:17 AM, Graham Cox wrote:
> On 02/06/2011, at 1:12 AM, JAMES ROGERS wrote:
>> K&R says to declare and initialize an array in C:
>>
>> int myArray[2] = {1,2};
>> ArrayTestAppDelegate.h:14: error: expected ':', ',', ';', '}' or
>> '__attribute__' before '=' token
If I cop
On Jun 1, 2011, at 9:15 AM, Eric Williams wrote:
> I want to set the first responder for the window to be a text field in the
> NSView after the view is loaded, so that a user can immediately start typing
> into the field.
After the view is loaded into the window, call
[window makeFir
On Wed, Jun 1, 2011 at 9:15 AM, Eric Williams wrote:
> Probably fundamental but I haven't got my head straight on this.
>
> Xcode 4.0.2
> OS X 10.6.7
>
> I have an app that is a single window that I load NSView elements over the
> course of the life of the app.
>
> I want to set the first respond
On Jun 1, 2011, at 10:51 AM, Kyle Sluder wrote:
> You actually want to use initialFirstResponder here. You can wire up
> the window's initialFirstResponder outlet in IB to your text field,
> and it will do the right thing.
But the OP said he’s loading views into the window dynamically after it’s
On Wed, Jun 1, 2011 at 10:53 AM, Jens Alfke wrote:
>
> On Jun 1, 2011, at 10:51 AM, Kyle Sluder wrote:
>
>> You actually want to use initialFirstResponder here. You can wire up
>> the window's initialFirstResponder outlet in IB to your text field,
>> and it will do the right thing.
>
> But the OP
I'll caution you as written that singleton is not be thread safe. Often you
don't care, because you only have one thread or because creating 2 webservice
clients may not be a problem for you.
On Jun 1, 2011, at 3:54 AM, Dan Hopwood wrote:
> Thanks Steve. For completeness - what's the proper
Hi all.
I'm trying to implement some robust network-failure handling in my
iPhone app. The test of whether my host is reachable returns YES even
when connected to a router that has no Internet connection. Apple's
docs say, "A remote host is considered reachable when a data packet,
sent by an app
On Jun 1, 2011, at 5:13 PM, G S wrote:
> I'm trying to implement some robust network-failure handling in my
> iPhone app. The test of whether my host is reachable returns YES even
> when connected to a router that has no Internet connection. Apple's
> docs say, "A remote host is considered reacha
Thanks for the response, Greg.
> There are circumstances where a subset of the Internet's hosts may be
> reachable. For example, you may be able to reach link-local names without a
> broader Internet connection. Or you may be able to reach a host behind a VPN
> only when the VPN is active. (I d
> Thanks for the response, Greg.
>
>> There are circumstances where a subset of the Internet's hosts may be
>> reachable. For example, you may be able to reach link-local names without a
>> broader Internet connection. Or you may be able to reach a host behind a VPN
>> only when the VPN is acti
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 6/1/11 5:34 PM, G S wrote:
> But since this test doesn't actually check the routes to these
> hosts, how would it be able to provide meaningful results even in
> these cases?
Note: I am _not_ an SCNetworkReachability guru, so take this all with a
g
On Jun 1, 2011, at 7:52 PM, Conrad Shultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On 6/1/11 5:34 PM, G S wrote:
>> But since this test doesn't actually check the routes to these
>> hosts, how would it be able to provide meaningful results even in
>> these cases?
>
> Note: I
On Jun 1, 2011, at 5:34 PM, G S wrote:
> Thanks for the response, Greg.
>
>> There are circumstances where a subset of the Internet's hosts may be
>> reachable. For example, you may be able to reach link-local names without a
>> broader Internet connection. Or you may be able to reach a host beh
Hi,
I've been beating my head against the monitor for the past 2 hours trying to
figure this out. I would really appreciate it if someone can give me some
guidelines.
I have a server - client application, and I need to archive an object so that I
can send the data back and forth between the cl
On Jun 2, 2011, at 9:23, "Tony S. Wu" wrote:
> can archive and unarchive this object just fine on the client, but once I
> send the data over the network to the server, attempting to unarchive the
> object then results in an exception being thrown.
What's the exception?
>
> __
Hi,
It's NSInvalidUnarchiveOperationException, reason is *** -[NSKeyedUnarchiver
decodeObjectForKey:]: cannot decode object of class (DataObject)
Tony S. Wu
tonyswu@gmail.com
On Jun 1, 2011, at 6:28 PM, Roland King wrote:
>
>
>
>
> On Jun 2, 2011, at 9:23, "Tony S. Wu" wrote:
>
>>
Your archive includes an instance of "DataObject", but the process doing the
unarchiving does not have that class definition.
Dave
On Jun 1, 2011, at 6:40 PM, Tony S. Wu wrote:
> NSInvalidUnarchiveOperationException, reason is *** -[NSKeyedUnarchiver
> decodeObjectForKey:]: cannot decode objec
I'm trying to capture video. In the capture the user can select a specific area
to capture out of the full field of the video.
That much functions the problem is that although the image I get has the
correct size I cannot figure out how to get that source image to draw in to an
NSImage correctly
I'm new to Core Animation, so forgive me if I've missed something really
obvious.
I want to perform a 2-step animation of a layer's -transform, so it appears to
expand then shrink back to end up slightly larger than it started out. I can
easily do a 1-step animation by using a scaling transform
Just to add another two cents on the unreliability of pings for determining
reachability, if you are using the wi-fi service in certain airports, cafes,
etc. some wi-fi providers will respond to a ping of anything, so it will
appear you can reach any host, when in fact you can't reach anything exce
Perform the second transform after the first animation completes in a
separate animation block. You can start the second animation block
from the first animation block's completion block.
-Heath Borders
heath.bord...@gmail.com
Twitter: heathborders
http://heath-tech.blogspot.com
On Wed, Jun 1,
Hi,
--
JP.SASIKUMAR
___
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:
On Jun 1, 2011, at 8:17 AM, Graham Cox wrote:
>
> On 02/06/2011, at 1:12 AM, JAMES ROGERS wrote:
>
>> K&R says to declare and initialize an array in C:
>>
>> int myArray[2] = {1,2};
>>
>> If the above is entered into the .h file
>
>
> That's because a .h file is the HEADER.
>
> You ne
Hi All,
I have created a category class for one of the classes present in the
appkit-framework. Can some one please let me know if it is possible to have
IBOutlets defined in such categories as there in no interface declaration
present while defining a category i.e. we do not put @interface whi
Hello everyone.
We work with a CoreData model that is memory-based. However, at times I would
want to (partially) save an entity to the UserDefaults, as a dictionary.
For that, I wrote a little NSManagedObject extension (Category) with the
following method:
@interface NSManagedObject (OURExt
Hi,
I am working on an audio streaming iPhone application.
When user taps the play button, i starts the internal thread to receive
the stream audio and i have scheduled the stream source with NSRunLoop like
below
[_stream scheduleInRunLoop:[NSRunLoop currentRunLoop]
forMode:NSDefaultRu
On Jun 1, 2011, at 13:26, Motti Shneor wrote:
> - (NSMutableDictionary *)attributesAsDictionary {
> NSMutableDictionary *attributesDictionary = [NSMutableDictionary
> dictionaryWithCapacity:[self.entity.attributesByName count]];
> for (NSAttributeDescription* attribute in self.entity.
On 02/06/2011, at 5:32 AM, Sandeep wrote:
> I have created a category class for one of the classes present in the
> appkit-framework. Can some one please let me know if it is possible to have
> IBOutlets defined in such categories as there in no interface declaration
> present while defining a
Yep, that's true. I was going for the simple case since, unless you
specifically plan to reference the singleton from multiple threads, you don't
need to do anything more fancy.
On Jun 1, 2011, at 5:05 PM, Andrew Thompson wrote:
> I'll caution you as written that singleton is not be thread saf
Ok am I barking up the wrong tree here?
I know there has to be a way of taking an image of size say 128X128
and drawing it in to a rectangle of say size 256X512
without loosing the aspect ratio of the original image.
However The following code DOES NOT DO THIS
NSImage * screenImage = [[NSImage a
-drawInRect draws the image into the destination rectangle, stretching or
shrinking as necessary to get it to fit. If you want to preserve the aspect
ratio, you'll have to generate a scaled rectangle with the image's aspect
ratio. That's just simple math.
On Jun 1, 2011, at 9:29 PM, Develo
On Jun 1, 2011, at 21:29, Development wrote:
> Was I completely mistaken in thinking that the way I'm doing this was suppose
> to preserve the aspect ratio?
Yes, completely mistaken.
It may help to think of the source and destination rectangle as an origin and a
size separately.
The source re
Dear all,
I have a question on delegate/notification techniques in Cocoa.
For example, a simple delegate/notification sample is as follows. My
question is if it is possible to transmit data from WorkingApp to
AppController? Now AppController can only get notified about the Print job
is done. If s
After doing the ratio copy, you then need to decide what to do with rest of the
destination image. Probably set it to a specific colour.
Sent from my iPhone
On 2 Jun 2011, at 05:29 AM, Development wrote:
> Ok am I barking up the wrong tree here?
>
> I know there has to be a way of taking an i
47 matches
Mail list logo