Random idea (untested, just spouting here)
What about initing a barButtonItem with a custom view (that view being a
UIButton that has the target/action set on the appropriate touch down inside
[the end zone! - sorry, couldn't resist]), and then setting the target/action
of the barButtonItem its
*When an iPad is connected to another Mac (through USB/Wifi), iTune
application comes in picture and lists all the file sharing app.
I am trying to create file sharing application for iOS.
I am unable to figure out how we can simulate this USB/Wifi connection on
iPhone simulator to test my app bei
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...
I workedaround the problem archiving the data directly from the
attributedString this way:
NSData* stringData = [NSKeyedArchiver
archivedDataWithRootObject:mTextMutableString];
That's not guaranteed to always give you the same NSData either. Maybe
it works now for your small test case, bu
Hi All.
I'm working on accessibility in an app, and would like to have a view pop up on
screen and immediately become the focused item so that its text will be spoken.
There seems to be no call to "becomeAccessibilityFocus" like there is
"becomeFirstResponder".
Is there a way to do this?
Any
On Nov 12, 2010, at 12:05, Remco Poelstra wrote:
> If I understand it correctly, for all properties, each and everytime,
> valueForUndefinedKey is called?
Correct.
> So I do also need to override setValue:forUndefinedKey in case 2? To make
> sure that the properties end up in the dictionary?
Op 12 nov 2010, om 20:44 heeft Quincey Morris het volgende geschreven:
In case 2, which seems like the superior solution, the private
dictionary isn't being accessed via KVC at all, so the only KVC
behavior you're concerned with is that of the wrapper.
Ah, that explains. If I understand i
On Nov 12, 2010, at 11:13, Remco Poelstra wrote:
> Otherwise the valueForKey is called on my wrapper, instead of the dictionary
> that contains the real keys. I don't see how else the KVC logic should find
> out about that instance variable.
The dictionary is a private implementation detail of
Op 12 nov 2010, om 19:16 heeft Quincey Morris het volgende geschreven:
As as been said several times in this thread, you *shouldn't*
override 'valueForKey:', but instead override
'valueForUndefinedKey:' like this:
Is this kind of override ok?:
valueForKey: {
[properties valueForKey:
When implementing this method:
-createDestinationInstancesForSourceInstance:entityMapping:manager:error:
in a subclass of NSEntityMigrationPolicy, one typically loops through
attributes of the given source instance, does whatever migration logic is
desired, and then sets the results as
On Nov 12, 2010, at 10:16, Quincey Morris wrote:
> - (id) valueForUndefinedKey: (NSString*) key {
> id retVal=[properties objectForKey:key]; // note: NOT 'valueForKey:'
> if (!retVal) {
> //fetch value from network
> //We do not wait for the value
> }
On Nov 12, 2010, at 01:45, Remco Poelstra wrote:
> @interface PropertiesController: NSObject {
> NSMutableDictionary *properties;
> }
>
> -valueForKey:
> -setValue:forKey:
> @end
> @implementation PropertiesController
> valueForKey {
> id retVal=[properties valueForKey:key];
>
I'm doing an iPhone 4.1 app and I have a toolbar at the bottom with bar
buttons. The problem is that I need to set one of the bar buttons to "Touch
Down" instead of the default "Touch Up Inside" but IB doesn't show any touch
options for toolbar buttons (it does for buttons not in the toolbar).
On Nov 12, 2010, at 11:47 AM, Eric Gorr wrote:
> I have changed the contentView of my NSWindow to be a NSView which return YES
> for isFlipped.
>
> If I place a NSButton in the contentView of a window, I can do the following:
>
> NSRect r = [view frame];
>NSPointorigin;
I have changed the contentView of my NSWindow to be a NSView which return YES
for isFlipped.
If I place a NSButton in the contentView of a window, I can do the following:
NSRect r = [view frame];
NSPoint origin;
origin = [view convertPoint:NSZeroPoint toView:[[view wind
In the array controller I added an outlet for the data source of the second
table view:
IBOutlet ZZSecondArrayController *dataSource;
and connected it to the Array Controller for the second table view.
Then I changed the line that gave the compiler warning message to:
NSArray *selectedObje
Op 12 nov 2010, om 13:37 heeft Graham Cox het volgende geschreven:
>
> On 12/11/2010, at 11:24 PM, Remco Poelstra wrote:
>
>> But if I do not override setValue:forKey: How does the KVC logic now that it
>> should not try to call setValue:forKey: on my wrapper object, but on the
>> enclosed di
On 12 Nov 2010, at 14:17, Sherm Pendley wrote:
> On Fri, Nov 12, 2010 at 9:09 AM, Paul Johnson wrote:
>
>> I'm getting a compiler warning message at the following line of code:
>>
>> NSArray *selectedObjects = [[secondTableView dataSource]
>> selectedObjects];
>>
>> The warning message is <
On Fri, Nov 12, 2010 at 9:09 AM, Paul Johnson wrote:
> I'm getting a compiler warning message at the following line of code:
>
>NSArray *selectedObjects = [[secondTableView dataSource]
> selectedObjects];
>
> The warning message is <'selectedObjects' not found in protocol>.
>
Note that NSTab
I'm getting a compiler warning message at the following line of code:
NSArray *selectedObjects = [[secondTableView dataSource] selectedObjects
];
The warning message is <'selectedObjects' not found in protocol>.
Can someone suggest what I need to do to remove the warning?
___
On 12/11/2010, at 11:24 PM, Remco Poelstra wrote:
> But if I do not override setValue:forKey: How does the KVC logic now that it
> should not try to call setValue:forKey: on my wrapper object, but on the
> enclosed dictionary instead? Do I not need to override setValue:forKey: and
> call [myDi
Op 12-11-2010 12:13, Graham Cox schreef:
nil from NSDictionary means no value associated with the key
(dictionaries cannot store 'nil' as a value) so this is your cue to
go fetch. The problem is that the object on which
-valueForUndefinedKey: is invoked is the dictionary, not your
wrapper, and si
Hi,
I have followed the rules written on the pdf doc
"WebKit Plug-In Programming Topics" but I can't make
Safari load my first webplugin yet.
Does a webplugin require a signature, something not reported on the docs?
I run MacOS X 10.6.5, Safari 5.0.2. I compile with Xcode 3.2.3, with SDK
10.6, tar
On 12/11/2010, at 8:45 PM, Remco Poelstra wrote:
> If I ommit the valueForKey method, how does the KVC logic now, that it should
> check the properties variable?
> Further more, NSDictionary seems to always return a value, so all keys are
> "defined", they just return nil sometimes. How can val
Op 12-11-2010 2:26, Ken Thomases schreef:
On Nov 11, 2010, at 4:57 PM, Graham Cox wrote:
On 12/11/2010, at 3:30 AM, Ken Thomases wrote:
You should not override -setValue:forKey: or -valueForKey: if you can avoid it. Instead,
implement the methods -setValue:forUndefinedKey: and -valueForUnde
25 matches
Mail list logo