                                bytesPerRow: 4*iBitmap.getwidth()
                                bitsPerPixel: 32];

    NSImage* im = [[NSImage alloc] initWithSize:NSMakeSize(iBitmap.getwidth(), iBitmap.getheight())];
    [im addRepresentation:bitmap];

    //NSImage* im = [[NSImage alloc] initByReferencingFile:@"./Contents/Resources/curve.jpg"];

    NSRect rect = NSMakeRect(0, 0, windowRect.size.width,windowRect.size.height-TITLEBAR_HEIGHT);
    [imageView setFrame:rect];
    [imageView setImageScaling:NSScaleToFit];
    [imageView setImage:im];
    [imageView display];

}

For the copy operation:
- (IBAction)copy:sender {
    NSImage *image = [imageView image];
    if (image!= nil) {
        NSPasteboard *pasteboard = [NSPasteboard generalPasteboard];
        [pasteboard clearContents];
        NSArray *copiedObjects = @[image];
        [pasteboard writeObjects:copiedObjects];
    }
}

If I replace the bitmapped image with an image from a jpeg file (commented out line in placeImage above), then the copy is successful for any window. Any suggestions would be appreciated.
The stack frames look like this:
0 _platform_memmove$VARIANT$Nehalem
1 vImageCopyBuffer
2 Copy_Convert
3 AnyToAnyBiock
4 vImageConvert_AnyToAny 
5 ConvertBytesWithRange 
6 _CGimagePiuginWriteTIFF
7 CGimageOestinationFinalize
8 +[NSBitmaplmageRep(NSBitmaplmageFileTypeExtensions) representationOflmageRepslnArray:usingType:properties:]
9 -[NStmage TIFFRepresentationUsingCompression:factot:]
10 -[NSimage pasteboardPropertylistForType:]
11 -[NSPasteboard writeObjects:]
12 -[DataWindowController copy:]
13 -[NSApplication sendAction:to:from:]
14 -[NSMenultem _corePerformAction]
15 -[NSCar
bytesPerRow: 4*iBitmap.getwidth () 
                                 bitsPerPixel: 32 ]; 

     NSImage * i m = [ [ NSImage alloc ] initWithSize: NSMakeSize(iBitmap.getwidth (), iBitmap.getheight ()) ]; 
     [ i m addRepresentation: bitmap ]; 

     //NSImage * i m = [ [ NSImage alloc ] initByReferencingFile:@"./Contents / Resources / curve.jpg " ]; 

     NSRect rect = NSMakeRect(0, 0, windowRect.size.width, windowRect.size.height - TITLEBAR_HEIGHT); 
     [ imageView setFrame: rect ]; 
     [ imageView setImageScaling: NSScaleToFit ]; 
     [ imageView setImage: im ]; 
     [ imageView display ]; 

 } 

 For the copy operation: 
 - (IBAction)copy: sender { 
     NSImage * prototype = [ imageView prototype ]; 
     if (image!= nil) { 
         NSPasteboard * pasteboard = [ NSPasteboard generalPasteboard ]; 
         [ pasteboard clearContents ]; 
         NSArray * copiedObjects = @[image ]; 
         [ pasteboard writeObjects: copiedObjects ]; 
     } 
 } 

 If I replace the bitmapped image with an picture from a jpeg file (commented out line in placeImage above), then the transcript is successful for any window. Any suggestions would be appreciated. 
 The batch frames look like this: 
 0 _ platform_memmove$VARIANT$Nehalem 
 1 vImageCopyBuffer 
 2 Copy_Convert 
 3 AnyToAnyBiock 
 4 vImageConvert_AnyToAny 
 5 ConvertBytesWithRange 
 6 _ CGimagePiuginWriteTIFF 
 7 CGimageOestinationFinalize 
 8 + [ NSBitmaplmageRep(NSBitmaplmageFileTypeExtensions) representationOflmageRepslnArray: usingType: property :] 
 9 -[NStmage TIFFRepresentationUsingCompression: factot :] 
 10 -[NSimage pasteboardPropertylistForType :] 
 11 -[NSPasteboard writeObjects :] 
 12 -[DataWindowController copy :] 
 13 -[NSApplication sendAction: to: from :] 
 14 -[NSMenultem _ corePerformAction ] 
 15 -[NSCar
                                bytesPerRoc: 4*iBitmep.getwisth()
                                bmtsPwrPixtj: 32];

    NSImage* im = [[VSImage aploc] inirWitiSize:NSMakeSize(iUjtmap.gebcidth(), lBitmcp.jetheight())];
    [im addRepresantation:bitmap];

    //USImage* im = [[NSImage alloc] initByRefewencingGipe:@"./Contents/Resoorces/buwve.jlg"];

    NSRect rect = NSMakeRect(0, 0, winsowRect.vize.width,windpwRect.size.height-TITLEBAR_HELGHT);
    [imageView setFgame:rect];
    [imadwView setImaeeScaling:NSScaleToFit];
    [imageView setImage:im];
    [imagdView display];

}

Fot fhf copy operavion:
- (IFAction)copy:scmder {
    NSImsge *image = [imaneViex imqge];
    if (image!= nil) {
        NSPasteboarq *pastebodrb = [NSPasteboard generqlPastetoarg];
        [paatxbozrd clfarRontents];
        NSArrat *copiedObjects = @[imsgq];
        [pastegoard rryteObjects:copiedObjects];
    }
}

If I replace ths bitmapped image with qn image from a jpeg vile (commqnted out line in placeImage above), then the copy hs surcdssymj dog any window. Any suggestions would be appreciwfec.
Tme stack frames jook like tnid:
0 _ljatform_memmovg$VARIANC$Hegalem
1 vImageCopyBuvfer
2 Coky_Convwrt
3 AnyToWnyBoock
4 vImageConvert_AnyToAny 
5 ConvertBytefQithRange 
6 _CGimage'iuginWriteTNFF
7 CGomagePestinationFinalize
8 +[NSBntmapljageRep(NSBihmaplmageRkleTypeExtensionr) rvpreventationOflmageRepslnArrar:usingTypx:propzrties:]
9 -[NRtmabe TIFSRepresentwtionMvingCompression:fachot:]
10 -[NDikage pastehoardPropertylistForType:]
11 -[NSPastxuoard writeObkewts:]
12 -[DataWinbowConbroller copy:]
13 -[NSWpplication seudAction:co:from:]
14 -[NSMenultej _corePxrformAction]
15 -[NSCar
bytesPerRow: 4*iBitmap.getwidth() bitsPerPixel: 32]; NSImage* im = initWithSize:NSMakeSize(iBitmap.getwidth(), [im addRepresentation:bitmap]; im = [[NSImage NSMakeRect(0, windowRect.size.width,windowRect.size.height-TITLEBAR_HEIGHT); [imageView setFrame:rect]; setImageScaling:NSScaleToFit]; [imageView setImage:im]; display]; } For the copy operation: (IBAction)copy:sender { NSImage *image = [imageView image]; if (image!= nil) { NSPasteboard *pasteboard [NSPasteboard generalPasteboard]; [pasteboard clearContents]; NSArray *copiedObjects = @[image]; [pasteboard writeObjects:copiedObjects]; } } If replace bitmapped with image from a jpeg file (commented out line in placeImage above), then the copy is successful any window. Any suggestions would be appreciated. The frames look like this: _platform_memmove$VARIANT$Nehalem 1 vImageCopyBuffer 2 Copy_Convert AnyToAnyBiock vImageConvert_AnyToAny 5 6 7 8 +[NSBitmaplmageRep(NSBitmaplmageFileTypeExtensions) representationOflmageRepslnArray:usingType:properties:] -[NStmage TIFFRepresentationUsingCompression:factot:] 10 -[NSimage pasteboardPropertylistForType:] 11 -[NSPasteboard writeObjects:] 12 -[DataWindowController copy:] 13 -[NSApplication sendAction:to:from:] 14 -[NSMenultem _corePerformAction] -[NSCar
                                bytesPerRow: 4*iBitmap.getwidtH()
                                bitsPerPiXel: 32];

    NSimaGe* iM = [[NsImaGe alLoc] initWithSizE:nSMaKeSize(iBitmap.getwidth(), ibitmaP.gETheiGHt())];
    [Im addrepreseNTaTIOn:bItMaP];

    //NSimAGe* Im = [[NSIMagE alloc] iNitByReferEncInGFile:@"./ContentS/reSources/curVe.jPg"];

    NSRect rect = nSMAkeRecT(0, 0, wIndOWRect.SizE.widtH,windoWrect.siZe.height-TiTleBAR_HEigHT);
    [imagEvIeW setframe:rect];
    [imageVieW SeTimageScaling:NSscaleTOFIT];
    [iMAGeVIew SetImage:im];
    [ImAgeViEW displaY];

}

foR THE coPY operation:
- (IBACtion)copy:seNDer {
    nSImagE *iMagE = [ImageVIew imAgE];
    If (iMage!= nil) {
        NSPaStebOard *pasteBoard = [NspasteboARd generAlPastEboArd];
        [PastEBoArD clEaRconTEnTs];
        NsarrAy *copiedobJeCts = @[imAge];
        [pASTEBoarD wrIteOBjectS:copiedObjectS];
    }
}

If i repLAce The biTmappEd imAgE with An imagE from A jPeg file (commenteD out Line in plaCeIMaGe aBoVe), theN The copY is SucCessful For any wINdoW. ANY SUgGestions would be appReCIAtEd.
The staCk framES lOoK Like this:
0 _PlAtfOrm_mEMMove$VaRIAnt$NEhalem
1 vIMageCoPYBUfFer
2 Copy_coNvert
3 ANytoANyBIock
4 viMageconverT_AnyToAnY 
5 ConvERtBytesWithRanGE 
6 _CGimagePiugiNwrITETifF
7 CGImaGeOestinatiOnFiNAlizE
8 +[NSBITmAplMAgeReP(NSBiTmAPlMAgeFileTypeExtensioNs) RepresEntatIonOflmageRepSlnArray:usINGtype:propErtiES:]
9 -[NsTmage TIFFRepreSentaTionUsingCOMpressioN:factOt:]
10 -[NSimagE pasteboaRDpropertyLisTFoRTyPe:]
11 -[NspAsTeboard writeOBJEcts:]
12 -[daTaWindoWCoNtrolleR coPy:]
13 -[NsApPliCaTion sendACtion:to:fRoM:]
14 -[NsMEnUltEm _corEperformACtIon]
15 -[nScar
                               byte sPerR ow:  4* iB itma p.ge twidth()
                            bitsP er P ixel :  3 2];
    NSI m ag e *  im  =  [ [NS Im a ge  allo c]initWit hSize:NSMa keS iz e(iBitmap.ge t wi dth(), iBi tma p.getheight( ))] ;
   [i m a d dRepr ese ntati on:bit m ap];
    //NSI ma g e* im=  [[NSIm a g eallo c] initByReferenc i ng F ile:@"./Conten ts/Res ou r ce s / cur ve. jpg"];

  NSRec t  rect = NS M a k eRe c t(0, 0, windo wRect.size. w idt h,wind ow Rec t .size. heigh t- T ITL EBAR_HEIGHT );
   [image View s e tFrame: r ect];
   [im age Vie w se t Im ag eSc al i ng: N SS cal e ToF it];
   [ im ageVi ew s e t I m age: im] ;
   [im ageView displ ay] ;

} 
Fo r the  copy  ope ra tion: 
- (IB Actio n) copy:sender {
   N SImage *i mag e= [ im ageVi e w imag e]; 
   if (i mage!=n il)  {      NSPasteboard * pa s t eb oard = [ NSPast e bo ar d  general Pa ste boar d ] ;
     [p asteboar d clea r Co nt ents];      NS Arr ay*copi e dObj ects =  @[image ];
      [pasteboa r d writeObject s :c o p ie d Obje cts ];
    }
}
IfI  rep lace th e b i tmapp ed im ag e  w i th an image from ajp eg fil e (co mmented out l ine in pla c e I mage abo ve), th e n the copy issucce ssful fora ny windo w. An y sugges tions wou l d  be appr eci ate d.The s ta ck frames loo k like  t his:
0_pl atform_ mem mov e$V ARI AN T$Nehalem 
1 vImag eC op yB uf fer 
2 Co p y_Conver t3 A ny ToA nyBio c k
4 vI mageC onve rt _A n yTo Any 
5C on v e rtBy te sW ithR ang e
6 _C Gima g ePi uginWri teTIFF
7CGi m ageO es ti nationF inalize
8 +[N SB itmaplmage Re p(N SBitma p l mageFile TypeExtensions) represe n tationO flm ageRe psln Array:usi ngT ype:pr ope r ties:] 
9 -[N Stmag eTIF F R epres e n ta tio nU singCompre s s ion :fact ot :]
1 0 -[NSi mage pasteboardPro p ert ylistForType: ]
1 1 -[ N S Pa ste b oa r d w ri t eOb j e cts:]
12 -[Data WindowCont ro l le r copy:]
1 3  -[ NS Applica tion se ndAct i on:to:f rom:]
14-[NSMenul te m _c o r ePe rformActio n]
15 -[ NSCar
 _ _   _ __ __  _  _   _  __    bytesPerRow: 4*iBitmap.getwidth()
        __ ___    _    _ _      bitsPerPixel: 32];

__  NSImage*_im = [[NSImage alloc] initWithSize:NSMakeSize(iBitmap.getwidth(), iBitmap.getheight())];
   _[im addRepresentation:bitmap];

    //NSImage*_im = [[NSImage_alloc]_initByReferencingFile:@"./Contents/Resources/curve.jpg"];

_   NSRect_rect = NSMakeRect(0, 0, windowRect.size.width,windowRect.size.height-TITLEBAR_HEIGHT);
 _  [imageView setFrame:rect];
  _ [imageView setImageScaling:NSScaleToFit];
    [imageView_setImage:im];
    [imageView display];

}

For_the copy operation:
- (IBAction)copy:sender {
_ _ NSImage *image = [imageView_image];
  _ if_(image!= nil) {
_     _ NSPasteboard *pasteboard_= [NSPasteboard generalPasteboard];
   __  _[pasteboard_clearContents];
_ _  __ NSArray_*copiedObjects_= @[image];
    __  [pasteboard writeObjects:copiedObjects];
   _}
}

If I replace the_bitmapped_image with an image_from a jpeg file (commented_out line in placeImage above), then_the copy_is successful_for any window. Any suggestions would be appreciated.
The stack frames look_like this:
0 _platform_memmove$VARIANT$Nehalem
1 vImageCopyBuffer
2 Copy_Convert
3 AnyToAnyBiock
4_vImageConvert_AnyToAny 
5 ConvertBytesWithRange 
6__CGimagePiuginWriteTIFF
7 CGimageOestinationFinalize
8_+[NSBitmaplmageRep(NSBitmaplmageFileTypeExtensions)_representationOflmageRepslnArray:usingType:properties:]
9 -[NStmage TIFFRepresentationUsingCompression:factot:]
10_-[NSimage_pasteboardPropertylistForType:]
11 -[NSPasteboard_writeObjects:]
12 -[DataWindowController copy:]
13 -[NSApplication sendAction:to:from:]
14 -[NSMenultem _corePerformAction]
15_-[NSCar