Whether it matters or not depends on the circumstances and requirements.
In case of making a complete remote-control application, there are some issues
(at least on 10.5, don't know whether anything changed on 10.6).
See this thread on quartz-dev:
http://lists.apple.com/archives/quartz-dev/201
On 26.01.2011, at 07:10, Lou Zell wrote:
> NSView *localView = [[NSView alloc] init];
> [window setContentView:localView];
> [localView release];
While this is perfectly valid code, usually you want to leave the content view
alone (NSWindow already creates one for you). A better example would
Hi All,
I want to add a UITabBar in my UIViewController, I don't want to use
UITabBarController because I need to push this view controller into a
navigation controller. Everything is fine except that my images for
UITabBarItem is not scale to fit the item size to be displayed properly. As
it shou
Hi Kyle,
Thanks for your advise. I found the UIImage really wraps something that can
be used to read the raw image file. Maybe I need to check the file extension
and provide a UIImageView.
2011/1/26 Kyle Sluder
> On Tue, Jan 25, 2011 at 10:05 PM, Leon Qiao
> wrote:
> > I plan to use the UIWe
Thanks. That was useful.
Looks like the answer is to use CGEventCreateMouseEvent.
The following stackoverflow question might be of interest to some:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent
> Whether it matters or not depends on the circums
In a UITableView when a cell is swiped a delete button appears and allows you
to delete the row. I want to change this behavior by putting up a different
button "Complete" that will perform a different action.
For this I created a UISwipeGestureRecognizer and added it to the
UITableViewCell.
On Jan 26, 2011, at 5:10 AM, ico wrote:
> Hi All,
>
> I want to add a UITabBar in my UIViewController, I don't want to use
> UITabBarController because I need to push this view controller into a
> navigation controller.
Don't do that.
>From the "View Controller's Guide for iOS":
Note: Althou
Does anyone have any pointers on localizing a cmd line app? Like how can i have
different Localizable.strings for different languages in the cmd line app? I
know i could use a bundle specifically for this but that seems like a bit too
much.
thx
AC___
On 27 janv. 11, at 00:03, Alexander Cohen wrote:
> Does anyone have any pointers on localizing a cmd line app? Like how can i
> have different Localizable.strings for different languages in the cmd line
> app? I know i could use a bundle specifically for this but that seems like a
> bit too mu
On Jan 26, 2011, at 6:17 AM, Hrishikesh Murukkathampoondi
wrote:
>
>
> In a UITableView when a cell is swiped a delete button appears and allows you
> to delete the row. I want to change this behavior by putting up a different
> button "Complete" that will perform a different action.
>
>
On Jan 26, 2011, at 9:03 AM, Alexander Cohen wrote:
> Does anyone have any pointers on localizing a cmd line app? Like how can i
> have different Localizable.strings for different languages in the cmd line
> app? I know i could use a bundle specifically for this but that seems like a
> bit too
On Jan 25, 2011, at 3:24 PM, WT wrote:
> On Jan 25, 2011, at 8:45 PM, Dave Carrigan wrote:
>
>> When the docs say that a UINavigationController can be a tab in a tab bar
>> interface, they mean a UITabBarController, not a UIViewController that
>> happens to implement a tab bar interface.
>
> I
On Jan 26, 2011, at 3:10 AM, ico wrote:
> Everything is fine except that my images for UITabBarItem is not scale to fit
> the item size to be displayed properly. As
> it should be as described in the UITabBarItem documentation:
> *image*
>
> The item’s image. If nil, an image is not displayed.
>
I can add detect other touches. But how would I know which row
(UITableViewCell) to remove the accessoryView for?
One, perhaps hacky, way is store a pointer to the UITableViewCell (or store its
index) that has the accessoryView and if any other cell is touched I can remove
the accessoryView. Is
I found this old thread:
refreshing the header title for an NSTableColumn
http://lists.apple.com/archives/cocoa-dev/2005/Nov/msg00659.html
which describes the same problem I just faced.
In my case, I needed to change the justification of the text in the header cell
and calling setNeedsDis
On Jan 26, 2011, at 3:16 AM, Leon Qiao wrote:
> Hi Kyle,
>
> Thanks for your advise. I found the UIImage really wraps something that can
> be used to read the raw image file. Maybe I need to check the file extension
> and provide a UIImageView.
Yes, UIImage wraps CGImage. This is why I gave y
Hi all, I am trying to develop a core data model to meet a language grammar.
In this grammar, there are verbs, tenses and persons. (There are also voices -
but my brain cannot hear them right now:) )..
One scenario is to have the verbs and tense names in a single entity. However,
this would req
Have you tried [[theTable headerView] setNeedsDisplay:YES];?
That seems like the obvious solution, but the poster in that thread claims,
incorrectly, that the table header isn't a view. Yes it is.
--Graham
On 27/01/2011, at 3:05 AM, Eric Gorr wrote:
> I found this old thread:
>
> refreshin
Never prematurely optimize. To my knowledge, -reloadData is a pretty
intelligent method and performs incremental updates only as necessary. Have you
tested it to see if your application takes a noticeable performance hit? If it
doesn't, then don't second-guess the Cocoa frameworks.
Regardless,
Hi all,
I have a problem with a CoreData-Document. I normally use
NSManagedObjectContext#existingObjectWithID:error: method
to get the corresponding object for a given Object-ID. According to the
documentation it should return nil if the
object cannot be fetched, or does not exist, or cannot b
Storing the indexPath doesn't seem hacky to me. Seems like the way to do it.
Luke
On Jan 26, 2011, at 7:33 AM, Hrishikesh Murukkathampoondi wrote:
> I can add detect other touches. But how would I know which row
> (UITableViewCell) to remove the accessoryView for?
>
> One, perhaps hacky, way i
On Jan 26, 2011, at 8:39 AM, Matt Patenaude wrote:
> Never prematurely optimize. To my knowledge, -reloadData is a pretty
> intelligent method and performs incremental updates only as necessary.
No, don't do that. For NSTableView, it can't be very intelligent. It has to
requery everything from t
On 2011 Jan 26, at 08:21, David DelMonte wrote:
> Are either of these scenarios possible?
I didn't really comprehend all of your description, but in computer
programming, the answer to "Is it possible?" is almost always "Yes". To
determine whether or not it's "smart" usually requires length
On Wed, Jan 26, 2011 at 9:33 AM, Felix Franz wrote:
> But in this particular document it crashes (EXC_BAD_ACCESS) with:
>
> #0 0x935e3ed4 in objc_msgSend
Start here:
http://www.sealiesoftware.com/blog/archive/2008/09/22/objc_explain_So_you_crashed_in_objc_msgSend.html
--Kyle Sluder
___
On Wed, Jan 26, 2011 at 10:07 AM, Kyle Sluder wrote:
> Start here:
Actually, start with either NSZombieEnabled=YES or using the Zombies
instrument. And then move on to Greg's article if zombies don't help
you.
--Kyle Sluder
___
Cocoa-dev mailing list
On Wed, 26 Jan 2011 07:21:55 -0800, Steve Christensen said:
>If you go coloring outside the lines, you could find yourself having to do
>ongoing maintenance of your source to fix issues that shouldn't have been
>issues in the first place.
Yes; I'd put this even more generally. This is a framewo
On 1/24/11, Mathieu Suen wrote:
> Hi All,
>
> In other to write a binding for a language I need to load the Foundation
> framework at run time.
> So just to test I wrote a simple example:
>
> --objc-test.c--
> #include
> #include
> #include
>
> void
> onLoad (Class this, char* i
Hi All,
I'm trying to patch in Undo and Redo to a NSTableView > NSArrayController > -(
void )insertObject:( id )object inAllImportHeadersAtIndex:( NSInteger )index
and -( void )removeObjectfromAllImportHeadersAtIndex:( NSInteger )index, using
the example from Cocoa® Programming for Mac® OS X, T
On Jan 26, 2011, at 17:55, Kevin Bracey wrote:
> I'm trying to patch in Undo and Redo to a NSTableView > NSArrayController >
> -( void )insertObject:( id )object inAllImportHeadersAtIndex:( NSInteger
> )index and -( void )removeObjectfromAllImportHeadersAtIndex:( NSInteger
> )index, using the e
Hi Quincey, Thanks for your help!
Sorry, my description wasn't full enough.
This is not Core Data.
MyDocument has the NSMutableArray *allImportHeaders, MyDocument has the KVC
insert and remove messages for this.
I have an NSArrayController bound to allImportHeaders for it's content .
The NSTab
On Jan 26, 2011, at 19:44, Kevin Bracey wrote:
> This is not Core Data.
Er, sorry. I think there was a Core Data vs undo thread recently and I confused
that with this.
> MyDocument has the NSMutableArray *allImportHeaders, MyDocument has the KVC
> insert and remove messages for this.
>
> I ha
Hi all,
I am new to cocoa and objective C.
I am looking for a way to handle events for a NSView created
programmatically (without IB).
Is it possible starting from the following code?
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// Insert code here to initialize yo
On Wed, Jan 26, 2011 at 8:29 AM, Luca Tarozzi wrote:
> Hi all,
>
> I am new to cocoa and objective C.
>
> I am looking for a way to handle events for a NSView created
> programmatically (without IB).
These two statements are kind of at odds.
If you're new to Cocoa and Objective-C, why are you fi
Thank you once again, for you invaluable help
After breaking this out into a single use project I found that I'd tripped up
on spelling
removeObjectFromTestArrayAtIndex
removeObjectfromTestArrayAtIndex
so the Undo was calling the Lower f and that wasn't KVO so the
NSArrayController didn't get
This is an extremely odd bug I just encountered, and it appears to be
in NSPersistentDocument.
Here's the deal - my coredata app implements
writeToURL:ofType:forSaveOperation:originalContentsURL:error: so I can
do some final sanity checks on my data before saving. If the checks
succeed, we bubble
OK. Understand.
Seems it's better if I read some more books...
Luca
Il giorno 27/gen/2011, alle ore 05.39, Kyle Sluder ha scritto:
> On Wed, Jan 26, 2011 at 8:29 AM, Luca Tarozzi wrote:
>> Hi all,
>>
>> I am new to cocoa and objective C.
>>
>> I am looking for a way to handle events for a
On Jan 26, 2011, at 21:41, Jim Thomason wrote:
> It can be trivially repaired by just setting *error = nil upon entry
> into the method. That wipes out whatever is dangling around and then
> everything behaves correctly. But that's a dippy fix - I should be
> able to assume that the error pointer
37 matches
Mail list logo