Search Results

Search found 9 results on 1 pages for 'ragnarius'.

Page 1/1 | 1 

  • How do I get the same key bindings in vmware's Window and Mac [closed]

    - by ragnarius
    I have a macbook but sometimes I run Windows in vmware to program in Visual Studio. I have a swedish keyboard, to get the curly brace '{' I press alt(=option)+shift+8 in mac, but to get the same character in vmware/windows I should press alt+7. Obviously, I would like to have the same keyboard layout in mac and windows, how can I make this happen? I have been recommended to use autohotkey on Windows, but I have a problem mapping AltGr shift 8 to a character (i.e. <^!+8:{ does not work) (I state the question in this forum because I think that only programmers can answer it, we are the only ones that use the characters []{} )

    Read the article

  • When to release the UIImage ?

    - by ragnarius
    I use the following code to draw a subimage UIImage* subIm = getSubImage( large, rect ); [subIm drawInRect:self.bounds]; where getSubImage is defined as follows UIImage* getSubImage(UIImage* uim, CGRect rc){ CGImageRef imref = CGImageCreateWithImageInRect(uim.CGImage, rc); UIImage* sub = [UIImage imageWithCGImage:imref]; CGImageRelease(imref); NSLog(@"subimage retainCount=%d", [sub retainCount]); // is 1 return sub; }//getSubImage Is the code correct? Is it safe to "CGImageRelease" imref? Has sub "CGImageRetained" imref? Should I release subIm (I get an error if I do)? Is subIm contained in the autorelease-pool, and , if so, how do I know this? In general, can one check if an object is contained in the autorelease pool (for debugging purpose)?

    Read the article

  • When to call selectRow: on a UIPickerView that has just loaded?

    - by ragnarius
    I am trying to learn iPhone/iOS programming. I have an UIPickerView that should dispay its selected row as soon as it becomes visible (it is contained on a flippSideView). Unfortunately, the flipSideViewController's awakeFromNib is not called. It is too early to call [pickView selectRow ..] from viewWillLoad (the pickView does not exist at that time), and somewhat too late to do it in viewDidAppear. So, how can I make the pickerView display the selected row as soon it becomes visible?

    Read the article

1