1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ObjCHelpers: Rename makeCGRect from makeNSRect

This commit is contained in:
reuk 2025-01-15 20:01:43 +00:00
parent 90e72dbd98
commit 2d01e326db
No known key found for this signature in database
9 changed files with 23 additions and 20 deletions

View file

@ -1687,7 +1687,7 @@ public:
static NSView* createViewFor (AudioProcessor* filter, JuceAU* au, AudioProcessorEditor* const editor)
{
auto* editorCompHolder = new EditorCompHolder (editor);
auto r = convertToHostBounds (makeNSRect (editorCompHolder->getSizeToContainChild()));
auto r = convertToHostBounds (makeCGRect (editorCompHolder->getSizeToContainChild()));
static JuceUIViewClass cls;
auto* view = [[cls.createInstance() initWithFrame: r] autorelease];
@ -1766,7 +1766,7 @@ public:
[CATransaction begin];
[CATransaction setValue: (id) kCFBooleanTrue forKey:kCATransactionDisableActions];
auto rect = convertToHostBounds (makeNSRect (lastBounds));
auto rect = convertToHostBounds (makeCGRect (lastBounds));
auto* view = (NSView*) getWindowHandle();
auto superRect = [[view superview] frame];